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/drop_unused/unused_block_decls_in_catch/output.terser.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_1/input.js | JavaScript | function f(x, y) {
function g() {
return h();
}
function h() {
return g();
}
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_1/output.js | JavaScript | function f(x, y) {
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_1/output.mangleOnly.js | JavaScript | function n(n, r) {
function t() {
return u();
}
function u() {
return t();
}
return n + r;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_1/output.terser.js | JavaScript | function f(x, y) {
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_2/input.js | JavaScript | function f(x, y) {
var foo = 1,
bar = baz,
baz = foo + bar,
qwe = moo();
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_2/output.js | JavaScript | function f(x, y) {
moo();
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_2/output.mangleOnly.js | JavaScript | function n(n, o) {
var r = 1, t = u, u = r + t, a = moo();
return n + o;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_2/output.terser.js | JavaScript | function f(x, y) {
moo();
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_3/input.js | JavaScript | function f(x, y) {
var g = function () {
return h();
};
var h = function () {
return g();
};
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_3/output.js | JavaScript | function f(x, y) {
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_3/output.mangleOnly.js | JavaScript | function n(n, r) {
var t = function() {
return u();
};
var u = function() {
return t();
};
return n + r;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_circular_references_3/output.terser.js | JavaScript | function f(x, y) {
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_extends_might_throw/input.js | JavaScript | let x = "FAIL";
try {
class X extends might_throw_lol() {
constructor() {}
}
} catch (e) {
x = "PASS";
}
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_extends_might_throw/output.mangleOnly.js | JavaScript | let t = "FAIL";
try {
class t extends might_throw_lol() {
constructor(){}
}
} catch (o) {
t = "PASS";
}
console.log(t);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_might_throw/input.js | JavaScript | let x = "FAIL";
try {
class X {
static _ = ima_throw_lol();
}
} catch (e) {
x = "PASS";
}
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_might_throw/output.mangleOnly.js | JavaScript | let l = "FAIL";
try {
class l {
static _ = ima_throw_lol();
}
} catch (t) {
l = "PASS";
}
console.log(l);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_might_throw_2/input.js | JavaScript | let x = "FAIL";
try {
class X {
[ima_throw_lol()] = null;
}
} catch (e) {
x = "PASS";
}
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_might_throw_2/output.mangleOnly.js | JavaScript | let l = "FAIL";
try {
class l {
[ima_throw_lol()] = null;
}
} catch (o) {
l = "PASS";
}
console.log(l);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_might_throw_3/input.js | JavaScript | let x = "FAIL";
try {
class X {
[ima_throw_lol()]() {
return null;
}
}
} catch (e) {
x = "PASS";
}
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_might_throw_3/output.mangleOnly.js | JavaScript | let l = "FAIL";
try {
class l {
[ima_throw_lol()]() {
return null;
}
}
} catch (o) {
l = "PASS";
}
console.log(l);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_might_throw_4/input.js | JavaScript | let x = "FAIL";
try {
class X {
get [ima_throw_lol()]() {
return null;
}
}
} catch (e) {
x = "PASS";
}
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_which_might_throw_4/output.mangleOnly.js | JavaScript | let l = "FAIL";
try {
class l {
get [ima_throw_lol()]() {
return null;
}
}
} catch (t) {
l = "PASS";
}
console.log(l);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_with_static_props_side_effects/input.js | JavaScript | let x = "FAIL";
class X {
static _ = (x = "PASS");
}
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_with_static_props_side_effects/output.mangleOnly.js | JavaScript | let l = "FAIL";
class s {
static _ = (l = "PASS");
}
console.log(l);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_with_static_props_side_effects_2/input.js | JavaScript | let x = "FAIL";
function impure() {
x = "PASS";
}
class Unused {
static _ = impure();
}
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_class_with_static_props_side_effects_2/output.mangleOnly.js | JavaScript | let c = "FAIL";
function l() {
c = "PASS";
}
class o {
static _ = l();
}
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_funarg_1/input.js | JavaScript | function f(a, b, c, d, e) {
return a + b;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_funarg_1/output.js | JavaScript | function f(a, b) {
return a + b;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_funarg_1/output.mangleOnly.js | JavaScript | function n(n, r, t, u, c) {
return n + r;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_funarg_1/output.terser.js | JavaScript | function f(a, b) {
return a + b;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_funarg_2/input.js | JavaScript | function f(a, b, c, d, e) {
return a + c;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_funarg_2/output.js | JavaScript | function f(a, b, c) {
return a + c;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_funarg_2/output.mangleOnly.js | JavaScript | function n(n, r, t, u, c) {
return n + t;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_funarg_2/output.terser.js | JavaScript | function f(a, b, c) {
return a + c;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_keep_harmony_destructuring/input.js | JavaScript | function foo() {
var { x: x, y: y } = foo;
var a = foo;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_keep_harmony_destructuring/output.js | JavaScript | function foo() {
var { x: x, y: y } = foo;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_keep_harmony_destructuring/output.mangleOnly.js | JavaScript | function a() {
var { x: n , y: r } = a;
var v = a;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_keep_harmony_destructuring/output.terser.js | JavaScript | function foo() {
var { x: x, y: y } = foo;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_keep_setter_arg/input.js | JavaScript | var x = {
_foo: null,
set foo(val) {},
get foo() {
return this._foo;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_keep_setter_arg/output.js | JavaScript | var x = {
_foo: null,
set foo(val) {},
get foo() {
return this._foo;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_keep_setter_arg/output.mangleOnly.js | JavaScript | var o = {
_foo: null,
set foo (val){},
get foo () {
return this._foo;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_keep_setter_arg/output.terser.js | JavaScript | var x = {
_foo: null,
set foo(val) {},
get foo() {
return this._foo;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_nested_function/input.js | JavaScript | function f(x, y) {
function g() {
something();
}
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_nested_function/output.js | JavaScript | function f(x, y) {
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_nested_function/output.mangleOnly.js | JavaScript | function n(n, t) {
function i() {
something();
}
return n + t;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_nested_function/output.terser.js | JavaScript | function f(x, y) {
return x + y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_null_conditional_chain/input.js | JavaScript | null?.unused;
null?.[side_effect()];
null?.unused.i_will_throw;
null?.call(1);
null?.(2);
null?.maybe_call?.(3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_null_conditional_chain/output.mangleOnly.js | JavaScript | null?.unused;
null?.[side_effect()];
null?.unused.i_will_throw;
null?.call(1);
null?.(2);
null?.maybe_call?.(3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_null_conditional_chain/output.terser.js | JavaScript | undefined.i_will_throw;
undefined(1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_seq_elements/input.js | JavaScript | var a = 0,
b = 0;
console.log("just-make-sure-it-is-compilable") && (a++, b++);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_seq_elements/output.mangleOnly.js | JavaScript | var e = 0, l = 0;
console.log("just-make-sure-it-is-compilable") && (e++, l++);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_var_in_catch/input.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {
var x = 10;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_var_in_catch/output.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_var_in_catch/output.mangleOnly.js | JavaScript | function c() {
try {
c();
} catch (c) {
var t = 10;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/unused_var_in_catch/output.terser.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/used_block_decls_in_catch/input.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {
let x = 10;
const y = 10;
class Zee {}
}
console.log(x, y, Zee);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/used_block_decls_in_catch/output.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {}
console.log(x, y, Zee);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/used_block_decls_in_catch/output.mangleOnly.js | JavaScript | function c() {
try {
c();
} catch (e) {
let c = 10;
const o = 10;
class t {
}
}
console.log(x, y, Zee);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/used_block_decls_in_catch/output.terser.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {}
console.log(x, y, Zee);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/used_var_in_catch/input.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {
var x = 10;
}
return x;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/used_var_in_catch/output.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {
var x = 10;
}
return x;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/used_var_in_catch/output.mangleOnly.js | JavaScript | function r() {
try {
r();
} catch (r) {
var t = 10;
}
return t;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/used_var_in_catch/output.terser.js | JavaScript | function foo() {
try {
foo();
} catch (ex) {
var x = 10;
}
return x;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/var_catch_toplevel/input.js | JavaScript | function f() {
a--;
try {
a++;
x();
} catch (a) {
if (a) var a;
var a = 10;
}
}
f();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/var_catch_toplevel/output.js | JavaScript | !(function () {
0;
try {
0;
x();
} catch (a) {
var a;
}
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/var_catch_toplevel/output.mangleOnly.js | JavaScript | function a() {
c--;
try {
c++;
x();
} catch (c) {
if (a) var a;
var c = 10;
}
}
a();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/var_catch_toplevel/output.terser.js | JavaScript | !(function () {
0;
try {
0;
x();
} catch (a) {
var a;
}
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/vardef_value/input.js | JavaScript | function f() {
function g() {
return x();
}
var a = g();
return a(42);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/vardef_value/output.js | JavaScript | function f() {
return (function() {
return x();
})()(42);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/vardef_value/output.mangleOnly.js | JavaScript | function n() {
function n() {
return x();
}
var r = n();
return r(42);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/vardef_value/output.terser.js | JavaScript | function f() {
var a = (function () {
return x();
})();
return a(42);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/variable_refs_outside_unused_class/input.js | JavaScript | var symbols = id({ prop: "method" });
var input = id({ prop: class {} });
var staticProp = id({ prop: "foo" });
class unused extends input.prop {
static prop = staticProp.prop;
[symbols.prop]() {
console.log("PASS");
}
}
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/drop_unused/variable_refs_outside_unused_class/output.mangleOnly.js | JavaScript | var o = id({
prop: "method"
});
var p = id({
prop: class {
}
});
var r = id({
prop: "foo"
});
class s extends p.prop {
static prop = r.prop;
[o.prop]() {
console.log("PASS");
}
}
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/Infinity_NaN_undefined_LHS/input.js | JavaScript | function f() {
Infinity = Infinity;
++Infinity;
Infinity--;
NaN *= NaN;
++NaN;
NaN--;
undefined |= undefined;
++undefined;
undefined--;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/Infinity_NaN_undefined_LHS/output.js | JavaScript | function f() {
Infinity = 1 / 0;
++Infinity;
Infinity--;
NaN *= NaN;
++NaN;
NaN--;
undefined |= void 0;
++undefined;
undefined--;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/Infinity_NaN_undefined_LHS/output.mangleOnly.js | JavaScript | function n() {
Infinity = Infinity;
++Infinity;
Infinity--;
NaN *= NaN;
++NaN;
NaN--;
undefined |= undefined;
++undefined;
undefined--;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/Infinity_NaN_undefined_LHS/output.terser.js | JavaScript | function f() {
Infinity = 1 / 0;
++Infinity;
Infinity--;
NaN *= NaN;
++NaN;
NaN--;
undefined |= void 0;
++undefined;
undefined--;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/and/input.js | JavaScript | var a;
a = true && condition;
a = 1 && console.log("a");
a = 2 * 3 && 2 * condition;
a = 5 == 5 && condition + 3;
a = "string" && 4 - condition;
a = 5 + "" && condition / 5;
a = -4.5 && 6 << condition;
a = 6 && 7;
a = false && condition;
a = NaN && console.log("b");
a = 0 && console.log("c");
a = undefined && 2 * condition;
a = null && condition + 3;
a = 2 * 3 - 6 && 4 - condition;
a = 10 == 7 && condition / 5;
a = !"string" && 6 % condition;
a = 0 && 7;
a = condition && true;
a = console.log("a") && 2;
a = 4 - condition && "string";
a = 6 << condition && -4.5;
a = condition && false;
a = console.log("b") && NaN;
a = console.log("c") && 0;
a = 2 * condition && undefined;
a = condition + 3 && null;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/and/output.js | JavaScript | var a;
a = condition;
a = console.log("a");
a = 2 * condition;
a = condition + 3;
a = 4 - condition;
a = condition / 5;
a = 6 << condition;
a = 7;
a = false;
a = NaN;
a = 0;
a = void 0;
a = null;
a = 0;
a = false;
a = false;
a = 0;
a = condition && true;
a = console.log("a") && 2;
a = 4 - condition && "string";
a = 6 << condition && -4.5;
a = condition && false;
a = console.log("b") && NaN;
a = console.log("c") && 0;
a = 2 * condition && void 0;
a = condition + 3 && null;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/and/output.mangleOnly.js | JavaScript | var o;
o = true && condition;
o = 1 && console.log("a");
o = 2 * 3 && 2 * condition;
o = 5 == 5 && condition + 3;
o = "string" && 4 - condition;
o = 5 + "" && condition / 5;
o = -4.5 && 6 << condition;
o = 6 && 7;
o = false && condition;
o = NaN && console.log("b");
o = 0 && console.log("c");
o = undefined && 2 * condition;
o = null && condition + 3;
o = 2 * 3 - 6 && 4 - condition;
o = 10 == 7 && condition / 5;
o = !"string" && 6 % condition;
o = 0 && 7;
o = condition && true;
o = console.log("a") && 2;
o = 4 - condition && "string";
o = 6 << condition && -4.5;
o = condition && false;
o = console.log("b") && NaN;
o = console.log("c") && 0;
o = 2 * condition && undefined;
o = condition + 3 && null;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/and/output.terser.js | JavaScript | var a;
a = condition;
a = console.log("a");
a = 2 * condition;
a = condition + 3;
a = 4 - condition;
a = condition / 5;
a = 6 << condition;
a = 7;
a = false;
a = NaN;
a = 0;
a = void 0;
a = null;
a = 0;
a = false;
a = false;
a = 0;
a = condition && true;
a = console.log("a") && 2;
a = 4 - condition && "string";
a = 6 << condition && -4.5;
a = condition && false;
a = console.log("b") && NaN;
a = console.log("c") && 0;
a = 2 * condition && void 0;
a = condition + 3 && null;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/array_slice_index/input.js | JavaScript | console.log([1, 2, 3].slice(1)[1]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/array_slice_index/output.js | JavaScript | console.log(3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/array_slice_index/output.mangleOnly.js | JavaScript | console.log([
1,
2,
3
].slice(1)[1]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/array_slice_index/output.terser.js | JavaScript | console.log(3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/call_args/input.js | JavaScript | const a = 1;
console.log(a);
+(function (a) {
return a;
})(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/call_args/output.js | JavaScript | const a = 1;
console.log(1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/call_args/output.mangleOnly.js | JavaScript | const n = 1;
console.log(n);
+(function(n) {
return n;
})(n);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/call_args/output.terser.js | JavaScript | const a = 1;
console.log(1);
+(1, 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/call_args_drop_param/input.js | JavaScript | const a = 1;
console.log(a);
+(function (a) {
return a;
})(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/call_args_drop_param/output.js | JavaScript | const a = 1;
console.log(1);
b;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/call_args_drop_param/output.mangleOnly.js | JavaScript | const n = 1;
console.log(n);
+(function(n) {
return n;
})(n, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/call_args_drop_param/output.terser.js | JavaScript | const a = 1;
console.log(1);
+(b, 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/delete_binary_1/input.js | JavaScript | console.log(delete (true && undefined));
console.log(delete (true && void 0));
console.log(delete (true && Infinity));
console.log(delete (true && 1 / 0));
console.log(delete (true && NaN));
console.log(delete (true && 0 / 0));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/delete_binary_1/output.js | JavaScript | console.log(!0);
console.log(!0);
console.log(!0);
console.log(!0);
console.log(!0);
console.log(!0);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/delete_binary_1/output.mangleOnly.js | JavaScript | console.log(delete (true && undefined));
console.log(delete (true && void 0));
console.log(delete (true && Infinity));
console.log(delete (true && 1 / 0));
console.log(delete (true && NaN));
console.log(delete (true && 0 / 0));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/delete_binary_1/output.terser.js | JavaScript | console.log(!0);
console.log(!0);
console.log(!0);
console.log(!0);
console.log(!0);
console.log(!0);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/delete_binary_2/input.js | JavaScript | console.log(delete (false || undefined));
console.log(delete (false || void 0));
console.log(delete (false || Infinity));
console.log(delete (false || 1 / 0));
console.log(delete (false || NaN));
console.log(delete (false || 0 / 0));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/delete_binary_2/output.js | JavaScript | console.log(!0);
console.log(!0);
console.log(!0);
console.log(!0);
console.log(!0);
console.log(!0);
| 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.