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/evaluate/unsafe_array_bad_index/output.terser.js | JavaScript | console.log([1, 2, 3, 4].a + 1, [1, 2, 3, 4]["a"] + 1, [1, 2, 3, 4][3.14] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt/input.js | JavaScript | console.log(
"1234" + 1,
"1234".charAt(0) + 1,
"1234".charAt(6 - 5) + 1,
("12" + "34").charAt(0) + 1,
("12" + "34").charAt(6 - 5) + 1,
[1, 2, 3, 4].join("").charAt(0) + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt/output.js | JavaScript | console.log("12341", "11", "21", "11", "21", "11");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt/output.mangleOnly.js | JavaScript | console.log("1234" + 1, "1234".charAt(0) + 1, "1234".charAt(6 - 5) + 1, ("12" + "34").charAt(0) + 1, ("12" + "34").charAt(6 - 5) + 1, [
1,
2,
3,
4
].join("").charAt(0) + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt/output.terser.js | JavaScript | console.log("12341", "11", "21", "11", "21", "11");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt_bad_index/input.js | JavaScript | console.log(
"1234".charAt() + 1,
"1234".charAt("a") + 1,
"1234".charAt(3.14) + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt_bad_index/output.js | JavaScript | console.log("11", "11", "41");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt_bad_index/output.mangleOnly.js | JavaScript | console.log("1234".charAt() + 1, "1234".charAt("a") + 1, "1234".charAt(3.14) + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt_bad_index/output.terser.js | JavaScript | console.log("11", "11", "41");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt_noop/input.js | JavaScript | console.log(s.charAt(0), "string".charAt(x), (typeof x).charAt());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt_noop/output.js | JavaScript | console.log(s.charAt(0), "string".charAt(x), (typeof x)[0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt_noop/output.mangleOnly.js | JavaScript | console.log(s.charAt(0), "string".charAt(x), (typeof x).charAt());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_charAt_noop/output.terser.js | JavaScript | console.log(s.charAt(0), "string".charAt(x), (typeof x)[0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_constant/input.js | JavaScript | console.log(true.a, false.a, null.a, undefined.a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_constant/output.js | JavaScript | console.log(true.a, false.a, null.a, (void 0).a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_constant/output.mangleOnly.js | JavaScript | console.log(true.a, false.a, null.a, undefined.a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_constant/output.terser.js | JavaScript | console.log(true.a, false.a, null.a, (void 0).a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_float_key/input.js | JavaScript | console.log(
{ 2.72: 1 } + 1,
{ 2.72: 1 }[2.72] + 1,
{ 2.72: 1 }["2.72"] + 1,
{ 2.72: 1 }[3.14] + 1,
{ 2.72: 1 }[2.72][3.14] + 1,
{ 2.72: 1 }[2.72]["3.14"] + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_float_key/output.js | JavaScript | console.log(
{ 2.72: 1 } + 1,
2,
2,
{ 2.72: 1 }[3.14] + 1,
(1)[3.14] + 1,
(1)["3.14"] + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_float_key/output.mangleOnly.js | JavaScript | console.log({
2.72: 1
} + 1, {
2.72: 1
}[2.72] + 1, {
2.72: 1
}["2.72"] + 1, {
2.72: 1
}[3.14] + 1, {
2.72: 1
}[2.72][3.14] + 1, {
2.72: 1
}[2.72]["3.14"] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_float_key/output.terser.js | JavaScript | console.log(
{ 2.72: 1 } + 1,
2,
2,
{ 2.72: 1 }[3.14] + 1,
(1)[3.14] + 1,
(1)["3.14"] + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_float_key_complex/input.js | JavaScript | console.log(
{ 2.72: { 3.14: 1 }, 3.14: 1 } + 1,
{ 2.72: { 3.14: 1 }, 3.14: 1 }[2.72] + 1,
{ 2.72: { 3.14: 1 }, 3.14: 1 }["2.72"] + 1,
{ 2.72: { 3.14: 1 }, 3.14: 1 }[3.14] + 1,
{ 2.72: { 3.14: 1 }, 3.14: 1 }[2.72][3.14] + 1,
{ 2.72: { 3.14: 1 }, 3.14: 1 }[2.72]["3.14"] + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_float_key_complex/output.js | JavaScript | console.log(
"[object Object]1",
"[object Object]1",
"[object Object]1",
2,
2,
2
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_float_key_complex/output.mangleOnly.js | JavaScript | console.log({
2.72: {
3.14: 1
},
3.14: 1
} + 1, {
2.72: {
3.14: 1
},
3.14: 1
}[2.72] + 1, {
2.72: {
3.14: 1
},
3.14: 1
}["2.72"] + 1, {
2.72: {
3.14: 1
},
3.14: 1
}[3.14] + 1, {
2.72: {
3.14: 1
},
3.14: 1
}[2.72][3.14] + 1, {
2.72: {
3.14: 1
},
3.14: 1
}[2.72]["3.14"] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_float_key_complex/output.terser.js | JavaScript | console.log(
"[object Object]1",
"[object Object]1",
"[object Object]1",
2,
2,
2
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_integer_key/input.js | JavaScript | console.log(
{ 0: 1 } + 1,
{ 0: 1 }[0] + 1,
{ 0: 1 }["0"] + 1,
{ 0: 1 }[1] + 1,
{ 0: 1 }[0][1] + 1,
{ 0: 1 }[0]["1"] + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_integer_key/output.js | JavaScript | console.log({ 0: 1 } + 1, 2, 2, { 0: 1 }[1] + 1, (1)[1] + 1, (1)["1"] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_integer_key/output.mangleOnly.js | JavaScript | console.log({
0: 1
} + 1, {
0: 1
}[0] + 1, {
0: 1
}["0"] + 1, {
0: 1
}[1] + 1, {
0: 1
}[0][1] + 1, {
0: 1
}[0]["1"] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_integer_key/output.terser.js | JavaScript | console.log({ 0: 1 } + 1, 2, 2, { 0: 1 }[1] + 1, (1)[1] + 1, (1)["1"] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_integer_key_complex/input.js | JavaScript | console.log(
{ 0: { 1: 1 }, 1: 1 } + 1,
{ 0: { 1: 1 }, 1: 1 }[0] + 1,
{ 0: { 1: 1 }, 1: 1 }["0"] + 1,
{ 0: { 1: 1 }, 1: 1 }[1] + 1,
{ 0: { 1: 1 }, 1: 1 }[0][1] + 1,
{ 0: { 1: 1 }, 1: 1 }[0]["1"] + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_integer_key_complex/output.js | JavaScript | console.log(
{ 0: { 1: 1 }, 1: 1 } + 1,
"[object Object]1",
"[object Object]1",
2,
2,
2
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_integer_key_complex/output.mangleOnly.js | JavaScript | console.log({
0: {
1: 1
},
1: 1
} + 1, {
0: {
1: 1
},
1: 1
}[0] + 1, {
0: {
1: 1
},
1: 1
}["0"] + 1, {
0: {
1: 1
},
1: 1
}[1] + 1, {
0: {
1: 1
},
1: 1
}[0][1] + 1, {
0: {
1: 1
},
1: 1
}[0]["1"] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_integer_key_complex/output.terser.js | JavaScript | console.log(
{ 0: { 1: 1 }, 1: 1 } + 1,
"[object Object]1",
"[object Object]1",
2,
2,
2
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object/input.js | JavaScript | var o = { a: 1 };
console.log(o + 1, o.a + 1, o.b + 1, o.a.b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object/output.js | JavaScript | var o = { a: 1 };
console.log(o + 1, 2, o.b + 1, (1).b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object/output.mangleOnly.js | JavaScript | var a = {
a: 1
};
console.log(a + 1, a.a + 1, a.b + 1, a.a.b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object/output.terser.js | JavaScript | var o = { a: 1 };
console.log(o + 1, 2, o.b + 1, (1).b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_accessor/input.js | JavaScript | function f() {
var a = { get b() {}, set b() {} };
return { a: a };
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_accessor/output.js | JavaScript | function f() {
var a = { get b() {}, set b() {} };
return { a: a };
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_accessor/output.mangleOnly.js | JavaScript | function n() {
var n = {
get b () {},
set b (<invalid>){}
};
return {
a: n
};
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_accessor/output.terser.js | JavaScript | function f(){var a={get b(){},set b(){}};return{a:a}} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_complex/input.js | JavaScript | var o = { a: { b: 1 }, b: 1 };
console.log(o + 1, o.a + 1, o.b + 1, o.a.b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_complex/output.js | JavaScript | var o = { a: { b: 1 }, b: 1 };
console.log(o + 1, o.a + 1, 2, 2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_complex/output.mangleOnly.js | JavaScript | var a = {
a: {
b: 1
},
b: 1
};
console.log(a + 1, a.a + 1, a.b + 1, a.a.b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_complex/output.terser.js | JavaScript | var o = { a: { b: 1 }, b: 1 };
console.log(o + 1, o.a + 1, 2, 2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_nested/input.js | JavaScript | var o = { a: { b: 1 } };
console.log(o + 1, o.a + 1, o.b + 1, o.a.b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_nested/output.js | JavaScript | var o = { a: { b: 1 } };
console.log(o + 1, o.a + 1, o.b + 1, 2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_nested/output.mangleOnly.js | JavaScript | var a = {
a: {
b: 1
}
};
console.log(a + 1, a.a + 1, a.b + 1, a.a.b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_nested/output.terser.js | JavaScript | var o = { a: { b: 1 } };
console.log(o + 1, o.a + 1, o.b + 1, 2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_repeated/input.js | JavaScript | var o = { a: { b: 1 }, a: 1 };
console.log(o + 1, o.a + 1, o.b + 1, o.a.b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_repeated/output.js | JavaScript | var o = { a: { b: 1 }, a: 1 };
console.log(o + 1, 2, o.b + 1, (1).b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_repeated/output.mangleOnly.js | JavaScript | var a = {
a: {
b: 1
},
a: 1
};
console.log(a + 1, a.a + 1, a.b + 1, a.a.b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_object_repeated/output.terser.js | JavaScript | var o = { a: { b: 1 }, a: 1 };
console.log(o + 1, 2, o.b + 1, (1).b + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_string/input.js | JavaScript | console.log(
"1234" + 1,
"1234"[0] + 1,
"1234"[6 - 5] + 1,
("12" + "34")[0] + 1,
("12" + "34")[6 - 5] + 1,
[1, 2, 3, 4].join("")[0] + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_string/output.js | JavaScript | console.log("12341", "11", "21", "11", "21", "11");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_string/output.mangleOnly.js | JavaScript | console.log("1234" + 1, "1234"[0] + 1, "1234"[6 - 5] + 1, ("12" + "34")[0] + 1, ("12" + "34")[6 - 5] + 1, [
1,
2,
3,
4
].join("")[0] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_string/output.terser.js | JavaScript | console.log("12341", "11", "21", "11", "21", "11");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_string_bad_index/input.js | JavaScript | console.log("1234".a + 1, "1234"["a"] + 1, "1234"[3.14] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_string_bad_index/output.js | JavaScript | console.log(NaN, NaN, NaN);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_string_bad_index/output.mangleOnly.js | JavaScript | console.log("1234".a + 1, "1234"["a"] + 1, "1234"[3.14] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/evaluate/unsafe_string_bad_index/output.terser.js | JavaScript | console.log("1234".a + 1, "1234"["a"] + 1, "1234"[3.14] + 1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_getset_object/input.js | JavaScript | let x = {
...{
get x() {
return 1;
},
},
};
let y = {
...{
set y(_) {
console.log(_);
},
},
};
console.log(x.x, y.y, (x.x = 2), (y.y = 3), x.x, y.y);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_getset_object/output.mangleOnly.js | JavaScript | let e = {
...{
get x () {
return 1;
}
}
};
let l = {
...{
set y (_){
console.log(_);
}
}
};
console.log(e.x, l.y, (e.x = 2), (l.y = 3), e.x, l.y);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_hole/input.js | JavaScript | let x = [...[,]];
let y = [,];
console.log(0 in x, 0 in y);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_hole/output.mangleOnly.js | JavaScript | let l = [
...[
,
]
];
let e = [
,
];
console.log(0 in l, 0 in e);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_holes_call/input.js | JavaScript | let x = (a, b) => [a, b];
let y = x(...[,], 1);
console.log(...y);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_holes_call/output.mangleOnly.js | JavaScript | let l = (l, e)=>[
l,
e
];
let e = l(...[
,
], 1);
console.log(...e);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_in_ternary/input.js | JavaScript | function print(...x) {
console.log(...x);
}
var a = [1, 2],
b = [3, 4],
m = Math;
if (m) print(a);
else print(b);
if (m) print(...a);
else print(b);
if (m.no_such_property) print(a);
else print(...b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_in_ternary/output.js | JavaScript | function print(...x) {
console.log(...x);
}
var a = [1, 2],
b = [3, 4],
m = Math;
print(m ? a : b);
m ? print(...a) : print(b);
m.no_such_property ? print(a) : print(...b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_in_ternary/output.mangleOnly.js | JavaScript | function e(...o) {
console.log(...o);
}
var o = [
1,
2
], l = [
3,
4
], s = Math;
if (s) e(o);
else e(l);
if (s) e(...o);
else e(l);
if (s.no_such_property) e(o);
else e(...l);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/avoid_spread_in_ternary/output.terser.js | JavaScript | function print(...x) {
console.log(...x);
}
var a = [1, 2],
b = [3, 4],
m = Math;
print(m ? a : b);
m ? print(...a) : print(b);
m.no_such_property ? print(a) : print(...b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_arguments/input.js | JavaScript | func(a, ...rest);
func(...all);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_arguments/output.js | JavaScript | func(a, ...rest);
func(...all);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_arguments/output.mangleOnly.js | JavaScript | func(a, ...rest);
func(...all);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_arguments/output.terser.js | JavaScript | func(a, ...rest);
func(...all);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_expression_arguments/input.js | JavaScript | f(...a.b);
f(...a.b());
f(...a);
f(...a.b);
f(...a[i]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_expression_arguments/output.js | JavaScript | f(...a.b);
f(...a.b());
f(...a);
f(...a.b);
f(...a[i]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_expression_arguments/output.mangleOnly.js | JavaScript | f(...a.b);
f(...a.b());
f(...a);
f(...a.b);
f(...a[i]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_expression_arguments/output.terser.js | JavaScript | f(...a.b);
f(...a.b());
f(...a);
f(...a.b);
f(...a[i]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_parameters/input.js | JavaScript | (function (a, ...b) {});
(function (...args) {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_parameters/output.js | JavaScript | (function (a, ...b) {});
(function (...args) {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_parameters/output.mangleOnly.js | JavaScript | (function(n, ...c) {});
(function(...n) {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/expand_parameters/output.terser.js | JavaScript | (function (a, ...b) {});
(function (...args) {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/object_spread/input.js | JavaScript | let obj = { ...{} };
console.log(Object.keys(obj));
let objWithKeys = { a: 1, ...{ b: 2 } };
console.log(Object.keys(objWithKeys).join(","));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/object_spread/output.mangleOnly.js | JavaScript | let e = {
...{}
};
console.log(Object.keys(e));
let o = {
a: 1,
...{
b: 2
}
};
console.log(Object.keys(o).join(","));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/object_spread_regression/input.js | JavaScript | const x = () => {
let o = { ...{} };
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/object_spread_regression/output.js | JavaScript | const x = () => {
let o = {};
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/object_spread_regression/output.mangleOnly.js | JavaScript | const t = ()=>{
let t = {
...{}
};
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/expansions/object_spread_regression/output.terser.js | JavaScript | const x = () => {
let o = {};
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/async_func/input.js | JavaScript | export async function Foo(x) {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/async_func/output.js | JavaScript | export async function Foo() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/async_func/output.mangleOnly.js | JavaScript | export async function Foo(o) {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/async_func/output.terser.js | JavaScript | export async function Foo() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/beautify/input.js | JavaScript | export { A as B, C as D };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/beautify/output.js | JavaScript | export { A as B, C as D };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/beautify/output.mangleOnly.js | JavaScript | export { A as B, C as D };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/beautify/output.terser.js | JavaScript | export { A as B, C as D };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/dynamic_import/input.js | JavaScript | import traditional from "./traditional.js";
function imp(x) {
return import(x);
}
import("module_for_side_effects.js");
let dynamic = import("some/module.js");
dynamic.foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/dynamic_import/output.js | JavaScript | import o from "./traditional.js";
function t(o) {
return import(o);
}
import("module_for_side_effects.js");
let r = import("some/module.js");
r.foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/export/dynamic_import/output.mangleOnly.js | JavaScript | import o from "./traditional.js";
function t(o) {
return import(o);
}
import("module_for_side_effects.js");
let r = import("some/module.js");
r.foo();
| 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.