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/nullish/nullish_coalescing_boolean_context/output.mangleOnly.js | JavaScript | if (null ?? unknown) {
pass();
}
if (unknown ?? false) {
pass();
}
if (4 + 4 ?? unknown) {
pass();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/nullish_coalescing_boolean_context/output.terser.js | JavaScript | unknown && pass();
unknown && pass();
pass();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/nullish_coalescing_mandatory_parens/input.js | JavaScript | (x ?? y) || z;
x || (y ?? z);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/nullish_coalescing_mandatory_parens/output.js | JavaScript | (x ?? y) || z;
x || (y ?? z);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/nullish_coalescing_mandatory_parens/output.mangleOnly.js | JavaScript | (x ?? y) || z;
x || (y ?? z);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/nullish_coalescing_mandatory_parens/output.terser.js | JavaScript | (x ?? y) || z;
x || (y ?? z);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/nullish_coalescing_parens/input.js | JavaScript | console.log((false || null) ?? "PASS");
console.log(null ?? (true && "PASS"));
console.log((null ?? 0) || "PASS");
console.log(null || (null ?? "PASS"));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/nullish_coalescing_parens/output.mangleOnly.js | JavaScript | console.log((false || null) ?? "PASS");
console.log(null ?? (true && "PASS"));
console.log((null ?? 0) || "PASS");
console.log(null || (null ?? "PASS"));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/simplify_nullish_coalescing/input.js | JavaScript | const y = id("one");
const is_null = null;
const not_null = "two";
console.log(is_null ?? y);
console.log(not_null ?? y);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/simplify_nullish_coalescing/output.js | JavaScript | console.log(id("one"));
console.log("two");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/simplify_nullish_coalescing/output.mangleOnly.js | JavaScript | const o = id("one");
const n = null;
const l = "two";
console.log(n ?? o);
console.log(l ?? o);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/nullish/simplify_nullish_coalescing/output.terser.js | JavaScript | const y = id("one");
console.log(y);
console.log("two");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/comparisons/input.js | JavaScript | console.log(~x === 42, x % n === 42);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/comparisons/output.js | JavaScript | console.log(42 == ~x, x % n == 42);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/comparisons/output.mangleOnly.js | JavaScript | console.log(~x === 42, x % n === 42);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/comparisons/output.terser.js | JavaScript | console.log(42 == ~x, x % n == 42);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/compress_numbers/input.js | JavaScript | const exp = 1e3;
const Exp = 1e12;
const negativeExp = 1e-8;
const huge = 0xe8d4a51001;
const big = 100000000001;
const fractional = 100.23002;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/compress_numbers/output.js | JavaScript | const exp = 1e3;
const Exp = 1e12;
const negativeExp = 1e-8;
const huge = 0xe8d4a51001;
const big = 100000000001;
const fractional = 100.23002;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/compress_numbers/output.mangleOnly.js | JavaScript | const c = 1e3;
const n = 1e12;
const o = 1e-8;
const s = 0xe8d4a51001;
const t = 100000000001;
const e = 100.23002;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/compress_numbers/output.terser.js | JavaScript | const exp = 1e3;
const Exp = 1e12;
const negativeExp = 1e-8;
const huge = 0xe8d4a51001;
const big = 100000000001;
const fractional = 100.23002;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_1/input.js | JavaScript | console.log(
x + 1 + 2,
x * 1 * 2,
+x + 1 + 2,
1 + x + 2 + 3,
1 | x | 2 | 3,
1 + x-- + 2 + 3,
1 + (x * y + 2) + 3,
1 + (2 + x + 3),
1 + (2 + ~x + 3),
-y + (2 + ~x + 3),
1 & (2 & x & 3),
1 + (2 + (x |= 0) + 3)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_1/output.js | JavaScript | console.log(
x + 1 + 2,
1 * x * 2,
+x + 1 + 2,
1 + x + 2 + 3,
3 | x,
1 + x-- + 2 + 3,
x * y + 2 + 1 + 3,
1 + (2 + x + 3),
2 + ~x + 3 + 1,
-y + (2 + ~x + 3),
0 & x,
2 + (x |= 0) + 3 + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_1/output.mangleOnly.js | JavaScript | console.log(x + 1 + 2, x * 1 * 2, +x + 1 + 2, 1 + x + 2 + 3, 1 | x | 2 | 3, 1 + x-- + 2 + 3, 1 + (x * y + 2) + 3, 1 + (2 + x + 3), 1 + (2 + ~x + 3), -y + (2 + ~x + 3), 1 & (2 & x & 3), 1 + (2 + (x |= 0) + 3));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_1/output.terser.js | JavaScript | console.log(
x + 1 + 2,
1 * x * 2,
+x + 1 + 2,
1 + x + 2 + 3,
3 | x,
1 + x-- + 2 + 3,
x * y + 2 + 1 + 3,
1 + (2 + x + 3),
2 + ~x + 3 + 1,
-y + (2 + ~x + 3),
0 & x,
2 + (x |= 0) + 3 + 1
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_2/input.js | JavaScript | console.log(
x + 1 + 2,
x * 1 * 2,
+x + 1 + 2,
1 + x + 2 + 3,
1 | x | 2 | 3,
1 + x-- + 2 + 3,
1 + (x * y + 2) + 3,
1 + (2 + x + 3),
1 & (2 & x & 3),
1 + (2 + (x |= 0) + 3)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_2/output.js | JavaScript | console.log(
x + 1 + 2,
2 * x,
3 + +x,
1 + x + 2 + 3,
3 | x,
6 + x--,
6 + x * y,
1 + (2 + x + 3),
0 & x,
6 + (x |= 0)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_2/output.mangleOnly.js | JavaScript | console.log(x + 1 + 2, x * 1 * 2, +x + 1 + 2, 1 + x + 2 + 3, 1 | x | 2 | 3, 1 + x-- + 2 + 3, 1 + (x * y + 2) + 3, 1 + (2 + x + 3), 1 & (2 & x & 3), 1 + (2 + (x |= 0) + 3));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_2/output.terser.js | JavaScript | console.log(
x + 1 + 2,
2 * x,
3 + +x,
1 + x + 2 + 3,
3 | x,
6 + x--,
6 + x * y,
1 + (2 + x + 3),
0 & x,
6 + (x |= 0)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_3/input.js | JavaScript | console.log(1 + Number(x) + 2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_3/output.js | JavaScript | console.log(3 + +x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_3/output.mangleOnly.js | JavaScript | console.log(1 + Number(x) + 2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_3/output.terser.js | JavaScript | console.log(3 + +x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_4/input.js | JavaScript | console.log(1 + +a, +a + 1, 1 + -a, -a + 1, +a + +b, +a + -b, -a + +b, -a + -b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_4/output.js | JavaScript | console.log(+a + 1, +a + 1, 1 - a, 1 - a, +a + +b, +a - b, -a + +b, -a - b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_4/output.mangleOnly.js | JavaScript | console.log(1 + +a, +a + 1, 1 + -a, -a + 1, +a + +b, +a + -b, -a + +b, -a + -b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/evaluate_4/output.terser.js | JavaScript | console.log(+a + 1, +a + 1, 1 - a, 1 - a, +a + +b, +a - b, -a + +b, -a - b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/hex_numbers_in_parentheses_for_prototype_functions/input.js | JavaScript | -2;
(-2).toFixed(0);
2;
(2).toFixed(0);
0.2;
(0.2).toFixed(0);
2e-8;
(2e-8).toFixed(0);
0xde0b6b3a7640080;
(0xde0b6b3a7640080).toFixed(0);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/hex_numbers_in_parentheses_for_prototype_functions/output.js | JavaScript | -2;
-2..toFixed(0);
2;
2..toFixed(0);
0.2;
0.2.toFixed(0);
2e-8;
2e-8.toFixed(0);
0xde0b6b3a7640080;
0xde0b6b3a7640080.toFixed(0);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/hex_numbers_in_parentheses_for_prototype_functions/output.mangleOnly.js | JavaScript | -2;
(-2).toFixed(0);
2;
(2).toFixed(0);
0.2;
(0.2).toFixed(0);
2e-8;
(2e-8).toFixed(0);
0xde0b6b3a7640080;
(0xde0b6b3a7640080).toFixed(0);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/hex_numbers_in_parentheses_for_prototype_functions/output.terser.js | JavaScript | -2;
(-2).toFixed(0);
2;
(2).toFixed(0);
0.2;
(0.2).toFixed(0);
2e-8;
(2e-8).toFixed(0);
0xde0b6b3a7640080;
(0xde0b6b3a7640080).toFixed(0);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/issue_1710/input.js | JavaScript | var x = {};
console.log((x += 1) + -x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/issue_1710/output.js | JavaScript | var x = {};
console.log((x += 1) + -x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/issue_1710/output.mangleOnly.js | JavaScript | var o = {};
console.log((o += 1) + -o);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/issue_1710/output.terser.js | JavaScript | var x = {};
console.log((x += 1) + -x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/keep_numbers/input.js | JavaScript | const exp = 1000000000000;
const negativeExp = 0.00000001;
const huge = 1000000000001;
const big = 100000000001;
const fractional = 100.23002;
const numeric_separators = 1_000_000_000_000;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/keep_numbers/output.js | JavaScript | const exp = 1000000000000;
const negativeExp = 0.00000001;
const huge = 1000000000001;
const big = 100000000001;
const fractional = 100.23002;
const numeric_separators = 1_000_000_000_000;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/keep_numbers/output.mangleOnly.js | JavaScript | const c = 1000000000000;
const n = 0.00000001;
const o = 1000000000001;
const s = 100000000001;
const t = 100.23002;
const e = 1_000_000_000_000;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/keep_numbers/output.terser.js | JavaScript | const exp = 1000000000000;
const negativeExp = 0.00000001;
const huge = 1000000000001;
const big = 100000000001;
const fractional = 100.23002;
const numeric_separators = 1_000_000_000_000;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/keep_numbers_in_properties_as_is/input.js | JavaScript | var Foo = { 1000000: 80000000000 };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/keep_numbers_in_properties_as_is/output.js | JavaScript | var Foo = { 1000000: 80000000000 };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/keep_numbers_in_properties_as_is/output.mangleOnly.js | JavaScript | var e = {
1000000: 80000000000
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/keep_numbers_in_properties_as_is/output.terser.js | JavaScript | var Foo = { 1000000: 80000000000 };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/no_number_function_transform_without_unsafe_math/input.js | JavaScript | Number(1234);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/no_number_function_transform_without_unsafe_math/output.js | JavaScript | Number(1234);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/no_number_function_transform_without_unsafe_math/output.mangleOnly.js | JavaScript | Number(1234);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/no_number_function_transform_without_unsafe_math/output.terser.js | JavaScript | Number(1234);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/number_function_transform_with_unsafe_math/input.js | JavaScript | Number(1234);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/number_function_transform_with_unsafe_math/output.js | JavaScript | 1234;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/number_function_transform_with_unsafe_math/output.mangleOnly.js | JavaScript | Number(1234);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/number_function_transform_with_unsafe_math/output.terser.js | JavaScript | +1234;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/numeric_separators/input.js | JavaScript | const one = 1e3;
const two = 1e6;
const bin = 85;
const oct = 342391;
const hex = 3735928559;
const fractional = 1000.0001;
const identifier = _1000;
const negate_identifier = -_1000;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/numeric_separators/output.js | JavaScript | const one = 1e3;
const two = 1e6;
const bin = 85;
const oct = 342391;
const hex = 3735928559;
const fractional = 1000.0001;
const identifier = _1000;
const negate_identifier = -_1000;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/numeric_separators/output.mangleOnly.js | JavaScript | const c = 1e3;
const n = 1e6;
const o = 85;
const s = 342391;
const t = 3735928559;
const e = 1000.0001;
const d = _1000;
const _ = -_1000;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/numeric_separators/output.terser.js | JavaScript | const one = 1e3;
const two = 1e6;
const bin = 85;
const oct = 342391;
const hex = 3735928559;
const fractional = 1000.0001;
const identifier = _1000;
const negate_identifier = -_1000;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/unary_binary_parenthesis/input.js | JavaScript | var v = [0, 1, NaN, Infinity, null, undefined, true, false, "", "foo", /foo/];
v.forEach(function (x) {
v.forEach(function (y) {
console.log(+(x * y), +(x / y), +(x % y), -(x * y), -(x / y), -(x % y));
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/unary_binary_parenthesis/output.js | JavaScript | var v = [
0,
1,
NaN,
1 / 0,
null,
void 0,
true,
false,
"",
"foo",
/foo/
];
v.forEach(function(x) {
v.forEach(function(y) {
console.log(+(x * y), +(x / y), +(x % y), -(x * y), -(x / y), -(x % y));
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/unary_binary_parenthesis/output.mangleOnly.js | JavaScript | var o = [
0,
1,
NaN,
Infinity,
null,
undefined,
true,
false,
"",
"foo",
/foo/
];
o.forEach(function(n) {
o.forEach(function(o) {
console.log(+(n * o), +(n / o), +(n % o), -(n * o), -(n / o), -(n % o));
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/numbers/unary_binary_parenthesis/output.terser.js | JavaScript | var v = [0, 1, NaN, 1 / 0, null, void 0, true, false, "", "foo", /foo/];
v.forEach(function (x) {
v.forEach(function (y) {
console.log(+x * y, +x / y, +x % y, -x * y, -x / y, -x % y);
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/allow_assignments_to_property_values/input.js | JavaScript | var foo = ({ 123: foo = 123 } = { foo: "456" });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/allow_assignments_to_property_values/output.js | JavaScript | var foo = ({ 123: foo = 123 } = { foo: "456" });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/allow_assignments_to_property_values/output.mangleOnly.js | JavaScript | var o = ({ 123: o = 123 } = {
foo: "456"
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/allow_assignments_to_property_values/output.terser.js | JavaScript | var foo = ({ 123: foo = 123 } = { foo: "456" });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names/input.js | JavaScript | obj({ ["x" + "x"]: 6 });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names/output.js | JavaScript | obj({
["xx"]: 6,
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names/output.mangleOnly.js | JavaScript | obj({
["x" + "x"]: 6
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names/output.terser.js | JavaScript | obj({ ["x" + "x"]: 6 });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_evaluated_1/input.js | JavaScript | obj({ [1 + 1]: 2, ["x" + "x"]: 6 });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_evaluated_1/output.js | JavaScript | obj({ [2]: 2, ["xx"]: 6 });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_evaluated_1/output.mangleOnly.js | JavaScript | obj({
[1 + 1]: 2,
["x" + "x"]: 6
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_evaluated_1/output.terser.js | JavaScript | obj({ [2]: 2, ["xx"]: 6 });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_evaluated_2/input.js | JavaScript | var foo = something();
var obj = {
[foo]() {
return "blah";
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_evaluated_2/output.js | JavaScript | var foo = something();
var obj = {
[foo]() {
return "blah";
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_evaluated_2/output.mangleOnly.js | JavaScript | var r = something();
var a = {
[r] () {
return "blah";
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_evaluated_2/output.terser.js | JavaScript | var foo = something();
var obj = {
[foo]() {
return "blah";
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_side_effects/input.js | JavaScript | const foo = { [console.log("PASS")]: 42 };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_side_effects/output.js | JavaScript | console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_side_effects/output.mangleOnly.js | JavaScript | const o = {
[console.log("PASS")]: 42
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/computed_property_names_side_effects/output.terser.js | JavaScript | console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_generators/input.js | JavaScript | x = {
*foo(a, b) {
return x;
},
};
y = {
*foo([{ a }]) {
yield a;
},
bar() {},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_generators/output.js | JavaScript | x = {
*foo (a, b) {
return x;
}
};
y = {
*foo ([{ a }]) {
yield a;
},
bar () {
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_generators/output.mangleOnly.js | JavaScript | x = {
*foo (o, r) {
return x;
}
};
y = {
*foo ([{ a: o }]) {
yield o;
},
bar () {}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_generators/output.terser.js | JavaScript | x = {
*foo(a, b) {
return x;
},
};
y = {
*foo([{ a }]) {
yield a;
},
bar() {},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_method_to_prop_arrow/input.js | JavaScript | console.log({ a: () => 1 }.a());
console.log({ a: () => 2 }.a());
console.log(
{
a() {
return 3;
},
}.a()
);
console.log(
{
a() {
return this.b;
},
b: 4,
}.a()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_method_to_prop_arrow/output.js | JavaScript | console.log({ a: () => 1 }.a());
console.log({ a: () => 2 }.a());
console.log({ a: () => 3 }.a());
console.log(
{
a() {
return this.b;
},
b: 4,
}.a()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_method_to_prop_arrow/output.mangleOnly.js | JavaScript | console.log({
a: ()=>1
}.a());
console.log({
a: ()=>2
}.a());
console.log({
a () {
return 3;
}
}.a());
console.log({
a () {
return this.b;
},
b: 4
}.a());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_method_to_prop_arrow/output.terser.js | JavaScript | console.log({ a: () => 1 }.a());
console.log({ a: () => 2 }.a());
console.log({ a: () => 3 }.a());
console.log(
{
a() {
return this.b;
},
b: 4,
}.a()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods/input.js | JavaScript | x = {
foo(a, b) {
return x;
},
};
y = {
foo([{ a }]) {
return a;
},
bar() {},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods/output.js | JavaScript | x = {
foo (a, b) {
return x;
}
};
y = {
foo ([{ a }]) {
return a;
},
bar () {
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods/output.mangleOnly.js | JavaScript | x = {
foo (r, o) {
return x;
}
};
y = {
foo ([{ a: r }]) {
return r;
},
bar () {}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods/output.terser.js | JavaScript | x = {
foo(a, b) {
return x;
},
};
y = {
foo([{ a }]) {
return a;
},
bar() {},
};
| 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.