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/arguments/replace_index_strict/output.terser.js
JavaScript
"use strict"; (function () { console.log(arguments[1], arguments[1], arguments.foo); })("bar", 42); (function (a, b) { console.log(b, b, arguments.foo); })("bar", 42);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/array_constructor/array_constructor/input.js
JavaScript
console.log(new Array()); console.log(new Array(0)); console.log(new Array(1)); console.log(new Array(11)); console.log(new Array(12));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/array_constructor/array_constructor/output.js
JavaScript
console.log([]); console.log([]); console.log([ , ]); console.log(Array(11)); console.log(Array(12));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/array_constructor/array_constructor/output.mangleOnly.js
JavaScript
console.log(new Array()); console.log(new Array(0)); console.log(new Array(1)); console.log(new Array(11)); console.log(new Array(12));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/array_constructor/array_constructor/output.terser.js
JavaScript
console.log(new Array()); console.log(new Array(0)); console.log(new Array(1)); console.log(new Array(11)); console.log(new Array(12));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/array_constructor/array_constructor_unsafe/input.js
JavaScript
console.log(new Array()); console.log(new Array(0)); console.log(new Array(1)); console.log(new Array(11)); console.log(Array(11)); console.log(new Array(12)); console.log(Array(12)); console.log(new Array(foo)); console.log(Array(foo)); console.log(new Array("foo")); console.log(Array("foo"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/array_constructor/array_constructor_unsafe/output.js
JavaScript
console.log([]); console.log([]); console.log([,]); console.log([, , , , , , , , , , ,]); console.log([, , , , , , , , , , ,]); console.log(Array(12)); console.log(Array(12)); console.log(Array(foo)); console.log(Array(foo)); console.log(Array("foo")); console.log(Array("foo"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/array_constructor/array_constructor_unsafe/output.mangleOnly.js
JavaScript
console.log(new Array()); console.log(new Array(0)); console.log(new Array(1)); console.log(new Array(11)); console.log(Array(11)); console.log(new Array(12)); console.log(Array(12)); console.log(new Array(foo)); console.log(Array(foo)); console.log(new Array("foo")); console.log(Array("foo"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/array_constructor/array_constructor_unsafe/output.terser.js
JavaScript
console.log([]); console.log([]); console.log([,]); console.log([, , , , , , , , , , ,]); console.log([, , , , , , , , , , ,]); console.log(Array(12)); console.log(Array(12)); console.log(Array(foo)); console.log(Array(foo)); console.log(Array("foo")); console.log(Array("foo"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join/input.js
JavaScript
var a = ["foo", "bar", "baz"].join(""); var a1 = ["foo", "bar", "baz"].join(); var a2 = ["foo", "bar", "baz"].join(null); var a3 = ["foo", "bar", "baz"].join(void 0); var a4 = ["foo", , "baz"].join(); var a5 = ["foo", null, "baz"].join(); var a6 = ["foo", void 0, "baz"].join(); var b = ["foo", 1, 2, 3, "bar"].join(""); var c = [boo(), "foo", 1, 2, 3, "bar", bar()].join(""); var c1 = [boo(), bar(), "foo", 1, 2, 3, "bar", bar()].join(""); var c2 = [1, 2, "foo", "bar", baz()].join(""); var c3 = [boo() + bar() + "foo", 1, 2, 3, "bar", bar() + "foo"].join(""); var c4 = [1, 2, null, undefined, "foo", "bar", baz()].join(""); var c5 = [boo() + bar() + "foo", 1, 2, 3, "bar", bar() + "foo"].join(); var c6 = [1, 2, null, undefined, "foo", "bar", baz()].join(); var d = ["foo", 1 + 2 + "bar", "baz"].join("-"); var e = [].join(foo + bar); var f = [].join(""); var g = [].join("foo");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join/output.js
JavaScript
var a = "foobarbaz"; var a1 = "foo,bar,baz"; var a2 = "foonullbarnullbaz"; var a3 = "foo,bar,baz"; var a4 = "foo,,baz"; var a5 = "foo,,baz"; var a6 = "foo,,baz"; var b = "foo123bar"; var c = boo() + "foo123bar" + bar(); var c1 = "" + boo() + bar() + "foo123bar" + bar(); var c2 = "12foobar" + baz(); var c3 = boo() + bar() + "foo123bar" + bar() + "foo"; var c4 = "12foobar" + baz(); var c5 = [boo() + bar() + "foo", 1, 2, 3, "bar", bar() + "foo"].join(); var c6 = ["1,2,,,foo,bar", baz()].join(); var d = "foo-3bar-baz"; var e = [].join(foo + bar); var f = ""; var g = "";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join/output.mangleOnly.js
JavaScript
var o = [ "foo", "bar", "baz" ].join(""); var a = [ "foo", "bar", "baz" ].join(); var r = [ "foo", "bar", "baz" ].join(null); var b = [ "foo", "bar", "baz" ].join(void 0); var n = [ "foo", , "baz" ].join(); var i = [ "foo", null, "baz" ].join(); var f = [ "foo", void 0, "baz" ].join(); var v = [ "foo", 1, 2, 3, "bar" ].join(""); var j = [ boo(), "foo", 1, 2, 3, "bar", bar() ].join(""); var z = [ boo(), bar(), "foo", 1, 2, 3, "bar", bar() ].join(""); var l = [ 1, 2, "foo", "bar", baz() ].join(""); var d = [ boo() + bar() + "foo", 1, 2, 3, "bar", bar() + "foo" ].join(""); var u = [ 1, 2, null, undefined, "foo", "bar", baz() ].join(""); var e = [ boo() + bar() + "foo", 1, 2, 3, "bar", bar() + "foo" ].join(); var c = [ 1, 2, null, undefined, "foo", "bar", baz() ].join(); var g = [ "foo", 1 + 2 + "bar", "baz" ].join("-"); var h = [].join(foo + bar); var k = [].join(""); var m = [].join("foo");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join/output.terser.js
JavaScript
var a = "foobarbaz"; var a1 = "foo,bar,baz"; var a2 = "foonullbarnullbaz"; var a3 = "foo,bar,baz"; var a4 = "foo,,baz"; var a5 = "foo,,baz"; var a6 = "foo,,baz"; var b = "foo123bar"; var c = boo() + "foo123bar" + bar(); var c1 = "" + boo() + bar() + "foo123bar" + bar(); var c2 = "12foobar" + baz(); var c3 = boo() + bar() + "foo123bar" + bar() + "foo"; var c4 = "12foobar" + baz(); var c5 = [boo() + bar() + "foo", 1, 2, 3, "bar", bar() + "foo"].join(); var c6 = ["1,2,,,foo,bar", baz()].join(); var d = "foo-3bar-baz"; var e = [].join(foo + bar); var f = ""; var g = "";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join_2/input.js
JavaScript
var a = ["foo", "bar", boo(), "baz", "x", "y"].join(""); var b = ["foo", "bar", boo(), "baz", "x", "y"].join("-"); var c = ["foo", "bar", boo(), "baz", "x", "y"].join("really-long-separator"); var d = [ "foo", "bar", boo(), ["foo", 1, 2, 3, "bar"].join("+"), "baz", "x", "y", ].join("-"); var e = [ "foo", "bar", boo(), ["foo", 1, 2, 3, "bar"].join("+"), "baz", "x", "y", ].join("really-long-separator"); var f = ["str", "str" + variable, "foo", "bar", "moo" + foo].join("");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join_2/output.js
JavaScript
var a = "foobar" + boo() + "bazxy"; var b = ["foo-bar", boo(), "baz-x-y"].join("-"); var c = ["foo", "bar", boo(), "baz", "x", "y"].join("really-long-separator"); var d = ["foo-bar", boo(), "foo+1+2+3+bar-baz-x-y"].join("-"); var e = ["foo", "bar", boo(), "foo+1+2+3+bar", "baz", "x", "y"].join( "really-long-separator" ); var f = "strstr" + variable + "foobarmoo" + foo;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join_2/output.mangleOnly.js
JavaScript
var o = [ "foo", "bar", boo(), "baz", "x", "y" ].join(""); var a = [ "foo", "bar", boo(), "baz", "x", "y" ].join("-"); var r = [ "foo", "bar", boo(), "baz", "x", "y" ].join("really-long-separator"); var b = [ "foo", "bar", boo(), [ "foo", 1, 2, 3, "bar" ].join("+"), "baz", "x", "y" ].join("-"); var n = [ "foo", "bar", boo(), [ "foo", 1, 2, 3, "bar" ].join("+"), "baz", "x", "y" ].join("really-long-separator"); var f = [ "str", "str" + variable, "foo", "bar", "moo" + foo ].join("");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join_2/output.terser.js
JavaScript
var a = "foobar" + boo() + "bazxy"; var b = ["foo-bar", boo(), "baz-x-y"].join("-"); var c = ["foo", "bar", boo(), "baz", "x", "y"].join("really-long-separator"); var d = ["foo-bar", boo(), "foo+1+2+3+bar-baz-x-y"].join("-"); var e = ["foo", "bar", boo(), "foo+1+2+3+bar", "baz", "x", "y"].join( "really-long-separator" ); var f = "strstr" + variable + "foobarmoo" + foo;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join_3/input.js
JavaScript
var a = [null].join(); var b = [,].join(); var c = [, 1, , 3].join(); var d = [foo].join(); var e = [foo, null, undefined, bar].join("-"); var f = [foo, bar].join(""); var g = [null, "foo", null, bar + "baz"].join(""); var h = [null, "foo", null, bar + "baz"].join("-"); var i = ["foo" + bar, null, baz + "moo"].join(""); var j = [foo + "bar", baz].join(""); var k = [foo, "bar" + baz].join(""); var l = [foo, bar + "baz"].join("");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join_3/output.js
JavaScript
var a = ""; var b = ""; var c = ",1,,3"; var d = "" + foo; var e = [foo, "-", bar].join("-"); var f = "" + foo + bar; var g = "foo" + bar + "baz"; var h = ["-foo-", bar + "baz"].join("-"); var i = "foo" + bar + baz + "moo"; var j = foo + "bar" + baz; var k = foo + "bar" + baz; var l = foo + (bar + "baz");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join_3/output.mangleOnly.js
JavaScript
var o = [ null ].join(); var a = [ , ].join(); var n = [ , 1, , 3 ].join(); var r = [ foo ].join(); var b = [ foo, null, undefined, bar ].join("-"); var l = [ foo, bar ].join(""); var i = [ null, "foo", null, bar + "baz" ].join(""); var j = [ null, "foo", null, bar + "baz" ].join("-"); var v = [ "foo" + bar, null, baz + "moo" ].join(""); var f = [ foo + "bar", baz ].join(""); var u = [ foo, "bar" + baz ].join(""); var z = [ foo, bar + "baz" ].join("");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/constant_join_3/output.terser.js
JavaScript
var a = ""; var b = ""; var c = ",1,,3"; var d = "" + foo; var e = [foo, "-", bar].join("-"); var f = "" + foo + bar; var g = "foo" + bar + "baz"; var h = ["-foo-", bar + "baz"].join("-"); var i = "foo" + bar + baz + "moo"; var j = foo + "bar" + baz; var k = foo + "bar" + baz; var l = foo + (bar + "baz");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/for_loop/input.js
JavaScript
function f0() { var a = [1, 2, 3]; var b = 0; for (var i = 0; i < a.length; i++) b += a[i]; return b; } function f1() { var a = [1, 2, 3]; var b = 0; for (var i = 0, len = a.length; i < len; i++) b += a[i]; return b; } function f2() { var a = [1, 2, 3]; for (var i = 0; i < a.length; i++) a[i]++; return a[2]; } console.log(f0(), f1(), f2());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/for_loop/output.js
JavaScript
function f0() { var a = [1, 2, 3]; var b = 0; for (var i = 0; i < 3; i++) b += a[i]; return b; } function f1() { var a = [1, 2, 3]; var b = 0; for (var i = 0; i < 3; i++) b += a[i]; return b; } function f2() { var a = [1, 2, 3]; for (var i = 0; i < a.length; i++) a[i]++; return a[2]; } console.log(f0(), f1(), f2());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/for_loop/output.mangleOnly.js
JavaScript
function r() { var r = [ 1, 2, 3 ]; var n = 0; for(var o = 0; o < r.length; o++)n += r[o]; return n; } function n() { var r = [ 1, 2, 3 ]; var n = 0; for(var o = 0, t = r.length; o < t; o++)n += r[o]; return n; } function o() { var r = [ 1, 2, 3 ]; for(var n = 0; n < r.length; n++)r[n]++; return r[2]; } console.log(r(), n(), o());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/for_loop/output.terser.js
JavaScript
function f0() { var a = [1, 2, 3]; var b = 0; for (var i = 0; i < 3; i++) b += a[i]; return b; } function f1() { var a = [1, 2, 3]; var b = 0; for (var i = 0; i < 3; i++) b += a[i]; return b; } function f2() { var a = [1, 2, 3]; for (var i = 0; i < a.length; i++) a[i]++; return a[2]; } console.log(f0(), f1(), f2());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/holes_and_undefined/input.js
JavaScript
w = [1, ,]; x = [1, 2, undefined]; y = [1, , 2]; z = [1, undefined, 3];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/holes_and_undefined/output.js
JavaScript
w = [1, ,]; x = [1, 2, void 0]; y = [1, , 2]; z = [1, void 0, 3];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/holes_and_undefined/output.mangleOnly.js
JavaScript
w = [ 1, , ]; x = [ 1, 2, undefined ]; y = [ 1, , 2 ]; z = [ 1, undefined, 3 ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/holes_and_undefined/output.terser.js
JavaScript
w = [1, ,]; x = [1, 2, void 0]; y = [1, , 2]; z = [1, void 0, 3];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/index/input.js
JavaScript
var a = [1, 2]; console.log(a[0], a[1]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/index/output.js
JavaScript
console.log(1, 2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/index/output.mangleOnly.js
JavaScript
var o = [ 1, 2 ]; console.log(o[0], o[1]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/index/output.terser.js
JavaScript
console.log(1, 2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/index_length/input.js
JavaScript
var a = [1, 2]; console.log(a[0], a.length);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/index_length/output.js
JavaScript
console.log(1, 2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/index_length/output.mangleOnly.js
JavaScript
var l = [ 1, 2 ]; console.log(l[0], l.length);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/index_length/output.terser.js
JavaScript
console.log(1, 2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/length/input.js
JavaScript
var a = [1, 2]; console.log(a.length);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/length/output.js
JavaScript
console.log(2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/length/output.mangleOnly.js
JavaScript
var l = [ 1, 2 ]; console.log(l.length);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/length/output.terser.js
JavaScript
console.log(2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_array_at_end/input.js
JavaScript
var a = [1, 2, ...[4, 5, 6]];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_array_at_end/output.js
JavaScript
var a = [1, 2, 4, 5, 6];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_array_at_end/output.mangleOnly.js
JavaScript
var a = [ 1, 2, ...[ 4, 5, 6 ] ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_array_at_end/output.terser.js
JavaScript
var a = [1, 2, 4, 5, 6];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_logical_expression_at_end/input.js
JavaScript
var a = [1, 2, 3, ...[2 + 2]];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_logical_expression_at_end/output.js
JavaScript
var a = [1, 2, 3, 4];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_logical_expression_at_end/output.mangleOnly.js
JavaScript
var a = [ 1, 2, 3, ...[ 2 + 2 ] ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_logical_expression_at_end/output.terser.js
JavaScript
var a = [1, 2, 3, 4];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_logical_expression_at_middle/input.js
JavaScript
var a = [1, 1, ...[1 + 1, 1 + 2, 2 + 3], 8];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_logical_expression_at_middle/output.js
JavaScript
var a = [1, 1, 2, 3, 5, 8];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_logical_expression_at_middle/output.mangleOnly.js
JavaScript
var a = [ 1, 1, ...[ 1 + 1, 1 + 2, 2 + 3 ], 8 ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_logical_expression_at_middle/output.terser.js
JavaScript
var a = [1, 1, 2, 3, 5, 8];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_as_last_element/input.js
JavaScript
var values = [4, 5, 6]; var a = [1, 2, 3, ...values];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_as_last_element/output.js
JavaScript
var values = [4, 5, 6]; var a = [1, 2, 3, ...values];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_as_last_element/output.mangleOnly.js
JavaScript
var a = [ 4, 5, 6 ]; var r = [ 1, 2, 3, ...a ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_as_last_element/output.terser.js
JavaScript
var values = [4, 5, 6]; var a = [1, 2, 3, ...values];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_at_front/input.js
JavaScript
var values = [1, 2, 3]; var a = [...values, 4, 5, 6];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_at_front/output.js
JavaScript
var values = [1, 2, 3]; var a = [...values, 4, 5, 6];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_at_front/output.mangleOnly.js
JavaScript
var a = [ 1, 2, 3 ]; var r = [ ...a, 4, 5, 6 ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_at_front/output.terser.js
JavaScript
var values = [1, 2, 3]; var a = [...values, 4, 5, 6];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_at_front_after_elisions/input.js
JavaScript
var values = [1, 2, 3]; var a = [, , , ...values, 4, 5, 6];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_at_front_after_elisions/output.js
JavaScript
var values = [1, 2, 3]; var a = [, , , ...values, 4, 5, 6];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_at_front_after_elisions/output.mangleOnly.js
JavaScript
var a = [ 1, 2, 3 ]; var r = [ , , , ...a, 4, 5, 6 ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_at_front_after_elisions/output.terser.js
JavaScript
var values = [1, 2, 3]; var a = [, , , ...values, 4, 5, 6];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_in_middle/input.js
JavaScript
var values = [4, 5, 6]; var a = [1, 2, 3, ...values, 7, , ,];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_in_middle/output.js
JavaScript
var values = [4, 5, 6]; var a = [1, 2, 3, ...values, 7, , ,];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_in_middle/output.mangleOnly.js
JavaScript
var a = [ 4, 5, 6 ]; var r = [ 1, 2, 3, ...a, 7, , , ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrays/spread_with_variable_in_middle/output.terser.js
JavaScript
var values = [4, 5, 6]; var a = [1, 2, 3, ...values, 7, , ,];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_binding_pattern/input.js
JavaScript
var foo = ([]) => "foo"; var bar = ({}) => "bar"; var with_default = (foo = "default") => foo; var object_with_default = ({ foo: foo = "default", bar: baz = "default" }) => foo; var array_after_spread = (...[foo]) => foo; var array_after_spread = (...{ foo: foo }) => foo; var computed = ({ [compute()]: x }) => {}; var array_hole = ([, , ...x] = [1, 2]) => {}; var object_trailing_elision = ({ foo: foo }) => {}; var spread_empty_array = (...[]) => "foo"; var spread_empty_object = (...{}) => "foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_binding_pattern/output.js
JavaScript
var foo = ([])=>"foo"; var bar = ({})=>"bar"; var with_default = (foo = "default")=>foo; var object_with_default = ({ foo: foo = "default" , bar: baz = "default" })=>foo; var array_after_spread = (...[foo])=>foo; var array_after_spread = (...{ foo: foo })=>foo; var computed = ({ [compute()]: x })=>{}; var array_hole = ([, , ...x] = [ 1, 2 ])=>{}; var object_trailing_elision = ({ foo: foo })=>{}; var spread_empty_array = (...[])=>"foo"; var spread_empty_object = (...{})=>"foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_binding_pattern/output.mangleOnly.js
JavaScript
var a = ([])=>"foo"; var o = ({})=>"bar"; var r = (a = "default")=>a; var v = ({ foo: a = "default" , bar: o = "default" })=>a; var f = (...[a])=>a; var f = (...{ foo: a })=>a; var e = ({ [compute()]: a })=>{}; var t = ([, , ...a] = [ 1, 2 ])=>{}; var u = ({ foo: a })=>{}; var d = (...[])=>"foo"; var l = (...{})=>"foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_binding_pattern/output.terser.js
JavaScript
var foo = ([]) => "foo"; var bar = ({}) => "bar"; var with_default = (foo = "default") => foo; var object_with_default = ({ foo: foo = "default", bar: baz = "default" }) => foo; var array_after_spread = (...[foo]) => foo; var array_after_spread = (...{ foo: foo }) => foo; var computed = ({ [compute()]: x }) => {}; var array_hole = ([, , ...x] = [1, 2]) => {}; var object_trailing_elision = ({ foo: foo }) => {}; var spread_empty_array = (...[]) => "foo"; var spread_empty_object = (...{}) => "foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_binding_pattern_strict/input.js
JavaScript
var foo = ([,]) => "foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_binding_pattern_strict/output.js
JavaScript
var foo = ([,]) => "foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_binding_pattern_strict/output.mangleOnly.js
JavaScript
var o = ([])=>"foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_binding_pattern_strict/output.terser.js
JavaScript
var foo = ([,]) => "foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_function_with_single_parameter_with_default/input.js
JavaScript
var foo = (a = 0) => doSomething(a);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_function_with_single_parameter_with_default/output.js
JavaScript
var foo = (a = 0) => doSomething(a);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_function_with_single_parameter_with_default/output.mangleOnly.js
JavaScript
var o = (o = 0)=>doSomething(o);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_function_with_single_parameter_with_default/output.terser.js
JavaScript
var foo = (a = 0) => doSomething(a);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_functions_with_body/input.js
JavaScript
var a1 = () => { var a = 42 * Math.random(); return a; }; var a2 = (p) => { var a = Math.random() * p; return a; }; var a3 = (p) => { var a = Math.random() * p; return a; }; var a4 = (...p) => { var a = Math.random() * p; return a; }; var a5 = (b, c) => { var result = b * c + b / c; return result; }; var a6 = (b, ...c) => { var result = b; for (var i = 0; i < c.length; i++) result += c[i]; return result; }; var a7 = (...b) => { b.join(); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_functions_with_body/output.js
JavaScript
var a1 = () => { var a = 42 * Math.random(); return a; }; var a2 = (p) => { var a = Math.random() * p; return a; }; var a3 = (p) => { var a = Math.random() * p; return a; }; var a4 = (...p) => { var a = Math.random() * p; return a; }; var a5 = (b, c) => { var result = b * c + b / c; return result; }; var a6 = (b, ...c) => { var result = b; for (var i = 0; i < c.length; i++) result += c[i]; return result; }; var a7 = (...b) => { b.join(); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_functions_with_body/output.mangleOnly.js
JavaScript
var r = ()=>{ var r = 42 * Math.random(); return r; }; var a = (r)=>{ var a = Math.random() * r; return a; }; var v = (r)=>{ var a = Math.random() * r; return a; }; var n = (...r)=>{ var a = Math.random() * r; return a; }; var t = (r, a)=>{ var v = r * a + r / a; return v; }; var e = (r, ...a)=>{ var v = r; for(var n = 0; n < a.length; n++)v += a[n]; return v; }; var o = (...r)=>{ r.join(); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_functions_with_body/output.terser.js
JavaScript
var a1 = () => { var a = 42 * Math.random(); return a; }; var a2 = (p) => { var a = Math.random() * p; return a; }; var a3 = (p) => { var a = Math.random() * p; return a; }; var a4 = (...p) => { var a = Math.random() * p; return a; }; var a5 = (b, c) => { var result = b * c + b / c; return result; }; var a6 = (b, ...c) => { var result = b; for (var i = 0; i < c.length; i++) result += c[i]; return result; }; var a7 = (...b) => { b.join(); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_functions_without_body/input.js
JavaScript
var a1 = () => 42; var a2 = (p) => p; var a3 = (p) => p; var a4 = (...p) => p; var a5 = (b, c) => b + c; var a6 = (b, ...c) => b + c[0]; var a7 = (...b) => b.join();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_functions_without_body/output.js
JavaScript
var a1 = () => 42; var a2 = (p) => p; var a3 = (p) => p; var a4 = (...p) => p; var a5 = (b, c) => b + c; var a6 = (b, ...c) => b + c[0]; var a7 = (...b) => b.join();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_functions_without_body/output.mangleOnly.js
JavaScript
var a = ()=>42; var r = (a)=>a; var v = (a)=>a; var i = (...a)=>a; var j = (a, r)=>a + r; var n = (a, ...r)=>a + r[0]; var o = (...a)=>a.join();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_functions_without_body/output.terser.js
JavaScript
var a1 = () => 42; var a2 = (p) => p; var a3 = (p) => p; var a4 = (...p) => p; var a5 = (b, c) => b + c; var a6 = (b, ...c) => b + c[0]; var a7 = (...b) => b.join();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_unused/input.js
JavaScript
(top) => dog; let fn = (a) => { console.log(a * a); }; let u = (x, y) => x - y + g; (() => { console.log("0"); })(); !(function (x) { (() => { console.log("1"); })(); let unused = (x) => { console.log(x); }; let baz = (e) => e + e; console.log(baz(x)); })(1); fn(3);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_unused/output.js
JavaScript
let fn = (a) => { console.log(a * a); }; let u = (x, y) => x - y + g; (() => { console.log("0"); })(); !(function (x) { (() => { console.log("1"); })(); let baz = (e) => e + e; console.log(baz(x)); })(1); fn(3);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_unused/output.mangleOnly.js
JavaScript
(o)=>dog; let o = (o)=>{ console.log(o * o); }; let l = (o, l)=>o - l + g; (()=>{ console.log("0"); })(); !(function(o) { (()=>{ console.log("1"); })(); let l = (o)=>{ console.log(o); }; let e = (o)=>o + o; console.log(e(o)); })(1); o(3);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_unused/output.terser.js
JavaScript
let fn = (a) => { console.log(a * a); }; let u = (x, y) => x - y + g; (() => { console.log("0"); })(); !(function (x) { (() => { console.log("1"); })(); let baz = (e) => e + e; console.log(baz(x)); })(1); fn(3);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_unused_toplevel/input.js
JavaScript
(top) => dog; let fn = (a) => { console.log(a * a); }; let u = (x, y) => x - y + g; (() => { console.log("0"); })(); !(function (x) { (() => { console.log("1"); })(); let unused = (x) => { console.log(x); }; let baz = (e) => e + e; console.log(baz(x)); })(1); fn(3);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_unused_toplevel/output.js
JavaScript
let fn = (a) => { console.log(a * a); }; (() => { console.log("0"); })(); !(function (x) { (() => { console.log("1"); })(); let baz = (e) => e + e; console.log(baz(x)); })(1); fn(3);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_unused_toplevel/output.mangleOnly.js
JavaScript
(o)=>dog; let o = (o)=>{ console.log(o * o); }; let l = (o, l)=>o - l + g; (()=>{ console.log("0"); })(); !(function(o) { (()=>{ console.log("1"); })(); let l = (o)=>{ console.log(o); }; let e = (o)=>o + o; console.log(e(o)); })(1); o(3);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_unused_toplevel/output.terser.js
JavaScript
let fn = (a) => { console.log(a * a); }; (() => { console.log("0"); })(); !(function (x) { (() => { console.log("1"); })(); let baz = (e) => e + e; console.log(baz(x)); })(1); fn(3);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_with_regexp/input.js
JavaScript
(num) => /\d{11,14}/.test(num);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_with_regexp/output.js
JavaScript
(num) => /\d{11,14}/.test(num);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/arrow/arrow_with_regexp/output.mangleOnly.js
JavaScript
(t)=>/\d{11,14}/.test(t);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University