file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3042_1/output.mangleOnly.js | JavaScript | function n() {}
var o = [
1,
2
].map(function() {
return new n();
});
console.log(o[0].constructor === o[1].constructor);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3042_1/output.terser.js | JavaScript | function f() {}
var a = [1, 2].map(function () {
return new f();
});
console.log(a[0].constructor === a[1].constructor);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3042_2/input.js | JavaScript | function Foo() {
this.isFoo = function (o) {
return o instanceof Foo;
};
}
function FooCollection() {
this.foos = [1, 1].map(function () {
return new Foo();
});
}
var fooCollection = new FooCollection();
console.log(fooCollection.foos[0].isFoo(fooCollection.foos[0]));
console.log(fooCollection.foos[0].isFoo(fooCollection.foos[1]));
console.log(fooCollection.foos[1].isFoo(fooCollection.foos[0]));
console.log(fooCollection.foos[1].isFoo(fooCollection.foos[1]));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3042_2/output.js | JavaScript | function Foo() {
this.isFoo = function(o) {
return o instanceof Foo;
};
}
var fooCollection = new function() {
this.foos = [
1,
1
].map(function() {
return new Foo();
});
}();
console.log(fooCollection.foos[0].isFoo(fooCollection.foos[0]));
console.log(fooCollection.foos[0].isFoo(fooCollection.foos[1]));
console.log(fooCollection.foos[1].isFoo(fooCollection.foos[0]));
console.log(fooCollection.foos[1].isFoo(fooCollection.foos[1]));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3042_2/output.mangleOnly.js | JavaScript | function o() {
this.isFoo = function(s) {
return s instanceof o;
};
}
function s() {
this.foos = [
1,
1
].map(function() {
return new o();
});
}
var n = new s();
console.log(n.foos[0].isFoo(n.foos[0]));
console.log(n.foos[0].isFoo(n.foos[1]));
console.log(n.foos[1].isFoo(n.foos[0]));
console.log(n.foos[1].isFoo(n.foos[1]));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3042_2/output.terser.js | JavaScript | function Foo() {
this.isFoo = function (o) {
return o instanceof Foo;
};
}
var fooCollection = new (function () {
this.foos = [1, 1].map(function () {
return new Foo();
});
})();
console.log(fooCollection.foos[0].isFoo(fooCollection.foos[0]));
console.log(fooCollection.foos[0].isFoo(fooCollection.foos[1]));
console.log(fooCollection.foos[1].isFoo(fooCollection.foos[0]));
console.log(fooCollection.foos[1].isFoo(fooCollection.foos[1]));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3068_1/input.js | JavaScript | (function () {
do {
continue;
var b = "defined";
} while (b && b.c);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3068_1/output.js | JavaScript | (function () {
do {
continue;
var b = "defined";
} while (b && b.c);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3068_1/output.mangleOnly.js | JavaScript | (function() {
do {
continue;
var n = "defined";
}while (n && n.c)
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3068_1/output.terser.js | JavaScript | (function () {
do {
continue;
var b = "defined";
} while (b && b.c);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3068_2/input.js | JavaScript | (function () {
do {
try {
while ("" == typeof a);
} finally {
continue;
}
var b = "defined";
} while (b && b.c);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3068_2/output.js | JavaScript | (function () {
do {
try {
while ("" == typeof a);
} finally {
continue;
}
var b = "defined";
} while (b && b.c);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3068_2/output.mangleOnly.js | JavaScript | (function() {
do {
try {
while("" == typeof a);
} finally{
continue;
}
var e = "defined";
}while (e && e.c)
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3068_2/output.terser.js | JavaScript | (function () {
do {
try {
while ("" == typeof a);
} finally {
continue;
}
var b = "defined";
} while (b && b.c);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_308/input.js | JavaScript | exports.withStyles = withStyles;
function _inherits(superClass) {
if (typeof superClass !== "function") {
throw new TypeError();
}
Object.create(superClass);
}
function withStyles() {
var a = EXTERNAL();
return (function (_a) {
_inherits(_a);
function d() {}
})(a);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_308/output.js | JavaScript | function _inherits(superClass) {
if ("function" != typeof superClass) throw TypeError();
Object.create(superClass);
}
function withStyles() {
_inherits(EXTERNAL());
}
exports.withStyles = withStyles;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_308/output.mangleOnly.js | JavaScript | exports.withStyles = n;
function t(t) {
if (typeof t !== "function") {
throw new TypeError();
}
Object.create(t);
}
function n() {
var n = EXTERNAL();
return (function(n) {
t(n);
function e() {}
})(n);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_308/output.terser.js | JavaScript | function _inherits(superClass) {
if ("function" != typeof superClass) throw new TypeError();
Object.create(superClass);
}
function withStyles() {
_inherits(EXTERNAL());
}
exports.withStyles = withStyles;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3110_1/input.js | JavaScript | (function () {
function foo() {
return isDev ? "foo" : "bar";
}
var isDev = true;
var obj = { foo: foo };
console.log(foo());
console.log(obj.foo());
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3110_1/output.mangleOnly.js | JavaScript | (function() {
function o() {
return n ? "foo" : "bar";
}
var n = true;
var r = {
foo: o
};
console.log(o());
console.log(r.foo());
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3110_2/input.js | JavaScript | (function () {
function foo() {
return isDev ? "foo" : "bar";
}
var isDev = true;
console.log(foo());
var obj = { foo: foo };
console.log(obj.foo());
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3110_2/output.mangleOnly.js | JavaScript | (function() {
function o() {
return n ? "foo" : "bar";
}
var n = true;
console.log(o());
var r = {
foo: o
};
console.log(r.foo());
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3110_3/input.js | JavaScript | (function () {
function foo() {
return isDev ? "foo" : "bar";
}
console.log(foo());
var isDev = true;
var obj = { foo: foo };
console.log(obj.foo());
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3110_3/output.js | JavaScript | (function() {
function foo() {
return isDev ? "foo" : "bar";
}
console.log(foo());
var isDev = true;
console.log(({
foo: foo
}).foo());
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3110_3/output.mangleOnly.js | JavaScript | (function() {
function o() {
return n ? "foo" : "bar";
}
console.log(o());
var n = true;
var r = {
foo: o
};
console.log(r.foo());
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3110_3/output.terser.js | JavaScript | (function () {
function foo() {
return isDev ? "foo" : "bar";
}
console.log(foo());
var isDev = true;
var obj = { foo: foo };
console.log(obj.foo());
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_1/input.js | JavaScript | var c = 0;
(function () {
function f() {
while (g());
}
var a = f();
function g() {
a && a[c++];
}
g((a = 1));
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_1/output.js | JavaScript | var c = 0;
(function() {
var a = function() {
while(g());
}();
function g() {
a && a[c++];
}
g(a = 1);
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_1/output.mangleOnly.js | JavaScript | var n = 0;
(function() {
function o() {
while(i());
}
var c = o();
function i() {
c && c[n++];
}
i((c = 1));
})();
console.log(n);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_1/output.terser.js | JavaScript | var c = 0;
(function () {
function f() {
while (g());
}
var a = f();
function g() {
a && a[c++];
}
g((a = 1));
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_2/input.js | JavaScript | var c = 0;
(function () {
function f() {
while (g());
}
var a = f();
function g() {
a && a[c++];
}
a = 1;
g();
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_2/output.js | JavaScript | var c = 0;
(function() {
var a = function() {
while(g());
}();
function g() {
a && a[c++];
}
a = 1;
g();
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_2/output.mangleOnly.js | JavaScript | var n = 0;
(function() {
function o() {
while(i());
}
var c = o();
function i() {
c && c[n++];
}
c = 1;
i();
})();
console.log(n);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_2/output.terser.js | JavaScript | var c = 0;
(function () {
function f() {
while (g());
}
var a = f();
function g() {
a && a[c++];
}
a = 1;
g();
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_3/input.js | JavaScript | var c = 0;
(function () {
function f() {
while (g());
}
var a;
function g() {
a && a[c++];
}
g((a = 1));
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_3/output.mangleOnly.js | JavaScript | var n = 0;
(function() {
function o() {
while(i());
}
var c;
function i() {
c && c[n++];
}
i((c = 1));
})();
console.log(n);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_4/input.js | JavaScript | var a = 0,
b = 0;
function f() {
b += a;
}
f(f(), ++a);
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_4/output.js | JavaScript | var a = 0,
b = 0;
function f() {
b += a;
}
f(f(), ++a);
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_4/output.mangleOnly.js | JavaScript | var o = 0, n = 0;
function c() {
n += o;
}
c(c(), ++o);
console.log(o, n);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_4/output.terser.js | JavaScript | var a = 0,
b = 0;
function f() {
b += a;
}
f(f(), ++a);
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_5/input.js | JavaScript | function f() {
console.log(a);
}
function g() {
f();
}
while (g());
var a = 1;
f();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_5/output.js | JavaScript | function f() {
console.log(a);
}
while(function() {
f();
}());
var a = 1;
f();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_5/output.mangleOnly.js | JavaScript | function n() {
console.log(c);
}
function o() {
n();
}
while(o());
var c = 1;
n();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3113_5/output.terser.js | JavaScript | function f() {
console.log(a);
}
function g() {
f();
}
while (g());
var a = 1;
f();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3125/input.js | JavaScript | var o;
console.log(
(function () {
this.p++;
}.call((o = { p: 6 })),
o.p)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3125/output.js | JavaScript | var o;
console.log(
(function () {
this.p++;
}.call((o = { p: 6 })),
o.p)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3125/output.mangleOnly.js | JavaScript | var l;
console.log((function() {
this.p++;
}.call((l = {
p: 6
})), l.p));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3125/output.terser.js | JavaScript | var o;
console.log(
(function () {
this.p++;
}.call((o = { p: 6 })),
o.p)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_1/input.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
this();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_1/output.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
this();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_1/output.mangleOnly.js | JavaScript | (function() {
var n;
function t() {}
t.g = function t() {
function o() {
console.log(n ? "PASS" : "FAIL");
}
n = true;
this();
n = false;
o.g = t;
return o;
};
return t;
})().g().g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_1/output.terser.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
this();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_2/input.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
var self = this;
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
self();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_2/output.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
this();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_2/output.mangleOnly.js | JavaScript | (function() {
var n;
function t() {}
t.g = function t() {
var o = this;
function r() {
console.log(n ? "PASS" : "FAIL");
}
n = true;
o();
n = false;
r.g = t;
return r;
};
return t;
})().g().g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_2/output.terser.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
this();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_3/input.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
var self = this;
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
(function () {
return self;
})()();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_3/output.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
var self = this;
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
(function () {
return self;
})()();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_3/output.mangleOnly.js | JavaScript | (function() {
var n;
function t() {}
t.g = function t() {
var r = this;
function u() {
console.log(n ? "PASS" : "FAIL");
}
n = true;
(function() {
return r;
})()();
n = false;
u.g = t;
return u;
};
return t;
})().g().g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_3/output.terser.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
var self = this;
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
(function () {
return self;
})()();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_4/input.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
var o = { p: this };
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
o.p();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_4/output.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
var o = { p: this };
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
o.p();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_4/output.mangleOnly.js | JavaScript | (function() {
var n;
function t() {}
t.g = function t() {
var o = {
p: this
};
function r() {
console.log(n ? "PASS" : "FAIL");
}
n = true;
o.p();
n = false;
r.g = t;
return r;
};
return t;
})().g().g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_4/output.terser.js | JavaScript | (function () {
var a;
function f() {}
f.g = function g() {
var o = { p: this };
function h() {
console.log(a ? "PASS" : "FAIL");
}
a = true;
o.p();
a = false;
h.g = g;
return h;
};
return f;
})()
.g()
.g();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_5/input.js | JavaScript | var n = 1,
c = 0;
(function (a) {
var b = (function () {
this;
n-- && h();
})();
function h() {
b && c++;
}
h((b = 1));
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_5/output.js | JavaScript | var n = 1, c = 0;
(function(a) {
var b = function() {
this;
n-- && h();
}();
function h() {
b && c++;
}
h(b = 1);
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_5/output.mangleOnly.js | JavaScript | var n = 1, o = 0;
(function(c) {
var i = (function() {
this;
n-- && t();
})();
function t() {
i && o++;
}
t((i = 1));
})();
console.log(o);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_3140_5/output.terser.js | JavaScript | var n = 1,
c = 0;
(function (a) {
var b = (function () {
this;
n-- && h();
})();
function h() {
b && c++;
}
h((b = 1));
})();
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_369/input.js | JavaScript | var printTest = (function (ret) {
function ret() {
console.log("Value after override");
}
return ret;
})("Value before override");
printTest();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_369/output.mangleOnly.js | JavaScript | var e = (function(e) {
function e() {
console.log("Value after override");
}
return e;
})("Value before override");
e();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_379/input.js | JavaScript | global.a = (
(...args) =>
(a1, a2) =>
a1.foo === a2.foo
)(...args);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_379/output.js | JavaScript | global.a = ((...args1)=>(a1, a2)=>a1.foo === a2.foo)(...args);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_379/output.mangleOnly.js | JavaScript | global.a = ((...o)=>(o, a)=>o.foo === a.foo)(...args);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_379/output.terser.js | JavaScript | global.a = (
(...args) =>
(a1, a2) =>
a1.foo === a2.foo
)(...args);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_432_1/input.js | JavaScript | const selectServer = () => {
selectServers();
};
function selectServers() {
const retrySelection = () => {
var descriptionChangedHandler = () => {
selectServers();
};
};
retrySelection();
}
leak(() => Topology);
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_432_1/output.mangleOnly.js | JavaScript | const o = ()=>{
n();
};
function n() {
const o = ()=>{
var o = ()=>{
n();
};
};
o();
}
leak(()=>Topology);
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_432_2/input.js | JavaScript | const selectServer = () => {
selectServers();
};
function selectServers() {
function retrySelection() {
var descriptionChangedHandler = () => {
selectServers();
};
leak(descriptionChangedHandler);
}
retrySelection();
}
leak(() => Topology);
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_432_2/output.mangleOnly.js | JavaScript | const o = ()=>{
n();
};
function n() {
function o() {
var o = ()=>{
n();
};
leak(o);
}
o();
}
leak(()=>Topology);
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_443/input.js | JavaScript | const one_name = "PASS";
var get_one = () => {
if (one_name) return one_name;
};
{
let one_name = get_one();
console.log(one_name);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_443/output.mangleOnly.js | JavaScript | const o = "PASS";
var e = ()=>{
if (o) return o;
};
{
let o = e();
console.log(o);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_581/input.js | JavaScript | class Yellow {
method() {
const errorMessage = "FAIL";
return applyCb(errorMessage, () => console.log(this.message()));
}
message() {
return "PASS";
}
}
function applyCb(errorMessage, callback) {
return callback(errorMessage);
}
new Yellow().method();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_581/output.mangleOnly.js | JavaScript | class e {
method() {
const e = "FAIL";
return s(e, ()=>console.log(this.message()));
}
message() {
return "PASS";
}
}
function s(e, s) {
return s(e);
}
new e().method();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_581_2/input.js | JavaScript | (function () {
return (function (callback) {
return callback();
})(() => {
console.log(this.message);
});
}.call({ message: "PASS" }));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_581_2/output.js | JavaScript | (function () {
return (function (callback) {
return callback();
})(() => {
console.log(this.message);
});
}.call({ message: "PASS" }));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_581_2/output.mangleOnly.js | JavaScript | (function() {
return (function(e) {
return e();
})(()=>{
console.log(this.message);
});
}.call({
message: "PASS"
}));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_581_2/output.terser.js | JavaScript | (function () {
return (function (callback) {
return callback();
})(() => {
console.log(this.message);
});
}.call({ message: "PASS" }));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_639/input.js | JavaScript | const path = id({
extname: (name) => {
console.log("PASS:" + name);
},
});
global.getExtFn = function getExtFn() {
return function (path) {
return getExt(path);
};
};
function getExt(name) {
let ext;
if (!ext) {
ext = getExtInner(name);
}
return ext;
}
function getExtInner(name) {
return path.extname(name);
}
getExtFn()("name");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_639/output.mangleOnly.js | JavaScript | const n = id({
extname: (n)=>{
console.log("PASS:" + n);
}
});
global.getExtFn = function n() {
return function(n) {
return t(n);
};
};
function t(n) {
let t;
if (!t) {
t = e(n);
}
return t;
}
function e(t) {
return n.extname(t);
}
getExtFn()("name");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_741_2/input.js | JavaScript | var a = console.log;
var might_change = 0;
global.problem = () => {
var c = might_change;
a(c);
};
global.increment = () => {
might_change++;
};
increment();
problem();
increment();
problem();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_741_2/output.mangleOnly.js | JavaScript | var e = console.log;
var l = 0;
global.problem = ()=>{
var r = l;
e(r);
};
global.increment = ()=>{
l++;
};
increment();
problem();
increment();
problem();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_741_reference_cycle/input.js | JavaScript | for (var a = console.log, s = 1; s <= 3; ) {
var c = s;
a(c);
s++;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/issue_741_reference_cycle/output.mangleOnly.js | JavaScript | for(var o = console.log, r = 1; r <= 3;){
var a = r;
o(a);
r++;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/lvalues_def_1/input.js | JavaScript | var b = 1;
var a = b++,
b = NaN;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/lvalues_def_1/output.js | JavaScript | var b = 1;
var a = b++, b = NaN;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/lvalues_def_1/output.mangleOnly.js | JavaScript | var a = 1;
var o = a++, a = NaN;
console.log(o, a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/lvalues_def_1/output.terser.js | JavaScript | var b = 1;
var a = b++;
b = NaN;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/lvalues_def_2/input.js | JavaScript | var b = 1;
var a = (b += 1),
b = NaN;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/lvalues_def_2/output.js | JavaScript | var b;
var a = b = 2, b = NaN;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/lvalues_def_2/output.mangleOnly.js | JavaScript | var a = 1;
var o = (a += 1), a = NaN;
console.log(o, a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/lvalues_def_2/output.terser.js | JavaScript | var b = 1;
var a = (b += 1);
b = NaN;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.