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/object/concise_methods_and_keyword_names/input.js
JavaScript
x = { catch() {}, throw() {} };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_and_keyword_names/output.js
JavaScript
x = { catch() {}, throw() {} };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_and_keyword_names/output.mangleOnly.js
JavaScript
x = { catch () {}, throw () {} };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_and_keyword_names/output.terser.js
JavaScript
x = { catch() {}, throw() {} };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_and_mangle_props/input.js
JavaScript
function x() { obj = { _foo() { return 1; }, }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_and_mangle_props/output.js
JavaScript
function x() { obj = { o() { return 1; }, }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_and_mangle_props/output.mangleOnly.js
JavaScript
function o() { obj = { _foo () { return 1; } }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_and_mangle_props/output.terser.js
JavaScript
function x() { obj = { o() { return 1; }, }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_computed_property/input.js
JavaScript
var foo = { [Symbol.iterator]() { return {}; }, [1 + 2]() { return 3; }, ["1" + "4"]() { return 14; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_computed_property/output.js
JavaScript
var foo = { [Symbol.iterator]() { return {}; }, [3]() { return 3; }, ["14"]() { return 14; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_computed_property/output.mangleOnly.js
JavaScript
var r = { [Symbol.iterator] () { return {}; }, [1 + 2] () { return 3; }, ["1" + "4"] () { return 14; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_computed_property/output.terser.js
JavaScript
var foo = { [Symbol.iterator]() { return {}; }, [3]() { return 3; }, ["14"]() { return 14; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_computed_property2/input.js
JavaScript
var foo = { [[1]]() { return "success"; }, }; doSomething(foo[[1]]());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_computed_property2/output.js
JavaScript
var foo = { [[1]]() { return "success"; }, }; doSomething(foo[[1]]());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_computed_property2/output.mangleOnly.js
JavaScript
var e = { [[ 1 ]] () { return "success"; } }; doSomething(e[[ 1 ]]());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_computed_property2/output.terser.js
JavaScript
var foo = { [[1]]() { return "success"; }, }; doSomething(foo[[1]]());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_various_property_names/input.js
JavaScript
var get = "bar"; var a = { bar() { return this.get; }, 5() { return "five"; }, 3925() { return "f five five"; }, five() { return 5; }, 10(value) { this._ten = value; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_various_property_names/output.js
JavaScript
var get = "bar"; var a = { bar() { return this.get; }, 5() { return "five"; }, 3925() { return "f five five"; }, five() { return 5; }, 10(value) { this._ten = value; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_various_property_names/output.mangleOnly.js
JavaScript
var r = "bar"; var e = { bar () { return this.get; }, 5 () { return "five"; }, 3925 () { return "f five five"; }, five () { return 5; }, 10 (r) { this._ten = r; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/concise_methods_with_various_property_names/output.terser.js
JavaScript
var get = "bar"; var a = { bar() { return this.get; }, 5() { return "five"; }, 3925() { return "f five five"; }, five() { return 5; }, 10(value) { this._ten = value; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/convert_computed_props_to_regular_ones/input.js
JavaScript
var o = { ["hi"]: 0, ["A" + 1]: 1, [/B/]: 2, [100 + 23]: 3, [1 + 0.5]: 4, [Math.PI]: 5, [undefined]: 6, [true]: 7, [false]: 8, [null]: 9, [Infinity]: 10, [NaN]: 11, }; for (var k in o) { console.log(k, o[k]); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/convert_computed_props_to_regular_ones/output.js
JavaScript
var o = { hi: 0, A1: 1, [/B/]: 2, 123: 3, 1.5: 4, [Math.PI]: 5, [void 0]: 6, [!0]: 7, [!1]: 8, [null]: 9, [1 / 0]: 10, [NaN]: 11, }; for (var k in o) console.log(k, o[k]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/convert_computed_props_to_regular_ones/output.mangleOnly.js
JavaScript
var n = { ["hi"]: 0, ["A" + 1]: 1, [/B/]: 2, [100 + 23]: 3, [1 + 0.5]: 4, [Math.PI]: 5, [undefined]: 6, [true]: 7, [false]: 8, [null]: 9, [Infinity]: 10, [NaN]: 11 }; for(var a in n){ console.log(a, n[a]); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/convert_computed_props_to_regular_ones/output.terser.js
JavaScript
var o = { hi: 0, A1: 1, [/B/]: 2, 123: 3, 1.5: 4, [Math.PI]: 5, [void 0]: 6, [!0]: 7, [!1]: 8, [null]: 9, [1 / 0]: 10, [NaN]: 11, }; for (var k in o) console.log(k, o[k]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/dont_join_repeat_object_keys/input.js
JavaScript
const obj = { foo: 1 }; obj.foo = 2;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/dont_join_repeat_object_keys/output.js
JavaScript
const obj = { foo: (1, 2) };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/dont_join_repeat_object_keys/output.mangleOnly.js
JavaScript
const o = { foo: 1 }; o.foo = 2;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/dont_join_repeat_object_keys/output.terser.js
JavaScript
const obj = { foo: (1, 2) };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter/input.js
JavaScript
var get = "bar"; var a = { get: get, set: "foo", get bar() { return this.get; }, get 5() { return "five"; }, get 3925() { return "f five five"; }, get five() { return 5; }, set one(value) { this._one = value; }, set 9(value) { this._nine = value; }, set 10(value) { this._ten = value; }, set eleven(value) { this._eleven = value; }, }; var b = { get() { return "gift"; }, set: function (code) { return "Storing code " + code; }, }; var c = { ["get"]: "foo", ["set"]: "bar" }; var d = { get: "foo", set: "bar" };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter/output.js
JavaScript
var get = "bar"; var a = { get: get, set: "foo", get bar () { return this.get; }, get 5 () { return "five"; }, get 3925 () { return "f five five"; }, get five () { return 5; }, set one (value){ this._one = value; }, set 9 (value){ this._nine = value; }, set 10 (value){ this._ten = value; }, set eleven (value){ this._eleven = value; } }; var b = { get () { return "gift"; }, set: function(code) { return "Storing code " + code; } }; var c = { ["get"]: "foo", ["set"]: "bar" }; var d = { get: "foo", set: "bar" };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter/output.mangleOnly.js
JavaScript
var e = "bar"; var t = { get: e, set: "foo", get bar () { return this.get; }, get 5 () { return "five"; }, get 3925 () { return "f five five"; }, get five () { return 5; }, set one (value){ this._one = value; }, set 9 (value){ this._nine = value; }, set 10 (value){ this._ten = value; }, set eleven (value){ this._eleven = value; } }; var r = { get () { return "gift"; }, set: function(e) { return "Storing code " + e; } }; var n = { ["get"]: "foo", ["set"]: "bar" }; var i = { get: "foo", set: "bar" };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter/output.terser.js
JavaScript
var get = "bar"; var a = { get: get, set: "foo", get bar() { return this.get; }, get 5() { return "five"; }, get 3925() { return "f five five"; }, get five() { return 5; }, set one(value) { this._one = value; }, set 9(value) { this._nine = value; }, set 10(value) { this._ten = value; }, set eleven(value) { this._eleven = value; }, }; var b = { get() { return "gift"; }, set: function (code) { return "Storing code " + code; }, }; var c = { ["get"]: "foo", ["set"]: "bar" }; var d = { get: "foo", set: "bar" };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter_mangler/input.js
JavaScript
function f(get, set) { return { get, set, get g() {}, set s(n) {}, c, a: 1, m() {} }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter_mangler/output.js
JavaScript
function f(t, e) { return { get: t, set: e, get g () {}, set s (n){}, c, a: 1, m () {} }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter_mangler/output.mangleOnly.js
JavaScript
function t(t, e) { return { get: t, set: e, get g () {}, set s (n){}, c, a: 1, m () {} }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter_mangler/output.terser.js
JavaScript
function f(t, e) { return { get: t, set: e, get g() {}, set s(t) {}, c, a: 1, m() {} }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter_with_computed_value/input.js
JavaScript
class C { get ["a"]() { return "A"; } set ["a"](value) { do_something(a); } } var x = { get [a.b]() { return 42; }, }; class MyArray extends Array { get [Symbol.species]() { return Array; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter_with_computed_value/output.js
JavaScript
class C { get ["a"]() { return "A"; } set ["a"](value) { do_something(a); } } var x = { get [a.b]() { return 42; }, }; class MyArray extends Array { get [Symbol.species]() { return Array; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter_with_computed_value/output.mangleOnly.js
JavaScript
class e { get ["a"]() { return "A"; } set ["a"](e) { do_something(a); } } var r = { get [a.b] () { return 42; } }; class s extends Array { get [Symbol.species]() { return Array; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/getter_setter_with_computed_value/output.terser.js
JavaScript
class C { get ["a"]() { return "A"; } set ["a"](value) { do_something(a); } } var x = { get [a.b]() { return 42; }, }; class MyArray extends Array { get [Symbol.species]() { return Array; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_206/input.js
JavaScript
throw { ["__proto__"]: 1 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_206/output.js
JavaScript
throw { ["__proto__"]: 1 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_206/output.mangleOnly.js
JavaScript
throw { ["__proto__"]: 1 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_206/output.terser.js
JavaScript
throw { ["__proto__"]: 1 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_1/input.js
JavaScript
var obj = { ["x" + ""]: 1, ["method" + ""]() { this.s = "PASS"; }, get ["g" + ""]() { return this.x; }, set ["s" + ""](value) { this.x = value; }, }; obj.method(); console.log(obj.g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_1/output.js
JavaScript
var obj = { x: 1, method() { this.s = "PASS"; }, get g() { return this.x; }, set s(value) { this.x = value; }, }; obj.method(); console.log(obj.g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_1/output.mangleOnly.js
JavaScript
var t = { ["x" + ""]: 1, ["method" + ""] () { this.s = "PASS"; }, get ["g" + ""] () { return this.x; }, set ["s" + ""] (value){ this.x = value; } }; t.method(); console.log(t.g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_1/output.terser.js
JavaScript
var obj = { x: 1, method() { this.s = "PASS"; }, get g() { return this.x; }, set s(value) { this.x = value; }, }; obj.method(); console.log(obj.g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_2/input.js
JavaScript
var instance = new (class { constructor() { this.x = 2; } ["method" + ""]() { this.s = "PASS"; } get ["g" + ""]() { return this.x; } set ["s" + ""](value) { this.x = value; } })(); instance.method(); console.log(instance.g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_2/output.js
JavaScript
var instance = new (class { constructor() { this.x = 2; } method() { this.s = "PASS"; } get g() { return this.x; } set s(value) { this.x = value; } })(); instance.method(); console.log(instance.g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_2/output.mangleOnly.js
JavaScript
var s = new (class { constructor(){ this.x = 2; } ["method" + ""]() { this.s = "PASS"; } get ["g" + ""]() { return this.x; } set ["s" + ""](s) { this.x = s; } })(); s.method(); console.log(s.g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_2/output.terser.js
JavaScript
var instance = new (class { constructor() { this.x = 2; } method() { this.s = "PASS"; } get g() { return this.x; } set s(value) { this.x = value; } })(); instance.method(); console.log(instance.g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_3/input.js
JavaScript
var foo = { [1 + 0]: 1, [2 + 0]() { this[4] = "PASS"; }, get [3 + 0]() { return this[1]; }, set [4 + 0](value) { this[1] = value; }, }; foo[2](); console.log(foo[3]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_3/output.js
JavaScript
var foo = { 1: 1, 2() { this[4] = "PASS"; }, get 3() { return this[1]; }, set 4(value) { this[1] = value; }, }; foo[2](); console.log(foo[3]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_3/output.mangleOnly.js
JavaScript
var t = { [1 + 0]: 1, [2 + 0] () { this[4] = "PASS"; }, get [3 + 0] () { return this[1]; }, set [4 + 0] (value){ this[1] = value; } }; t[2](); console.log(t[3]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_3/output.terser.js
JavaScript
var foo = { 1: 1, 2() { this[4] = "PASS"; }, get 3() { return this[1]; }, set 4(value) { this[1] = value; }, }; foo[2](); console.log(foo[3]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_4/input.js
JavaScript
var bar = new (class { constructor() { this[1] = 2; } [2 + 0]() { this[4] = "PASS"; } get [3 + 0]() { return this[1]; } set [4 + 0](value) { this[1] = value; } })(); bar[2](); console.log(bar[3]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_4/output.js
JavaScript
var bar = new (class { constructor() { this[1] = 2; } 2() { this[4] = "PASS"; } get 3() { return this[1]; } set 4(value) { this[1] = value; } })(); bar[2](); console.log(bar[3]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_4/output.mangleOnly.js
JavaScript
var s = new (class { constructor(){ this[1] = 2; } [2 + 0]() { this[4] = "PASS"; } get [3 + 0]() { return this[1]; } set [4 + 0](s) { this[1] = s; } })(); s[2](); console.log(s[3]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_4/output.terser.js
JavaScript
var bar = new (class { constructor() { this[1] = 2; } 2() { this[4] = "PASS"; } get 3() { return this[1]; } set 4(value) { this[1] = value; } })(); bar[2](); console.log(bar[3]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_5/input.js
JavaScript
new (class { ["constructor"]() { console.log("FAIL"); } constructor() { console.log("PASS"); } })();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_5/output.js
JavaScript
new (class { ["constructor"]() { console.log("FAIL"); } constructor() { console.log("PASS"); } })();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_5/output.mangleOnly.js
JavaScript
new (class { ["constructor"]() { console.log("FAIL"); } constructor(){ console.log("PASS"); } })();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/issue_2554_5/output.terser.js
JavaScript
new (class { ["constructor"]() { console.log("FAIL"); } constructor() { console.log("PASS"); } })();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/methods_and_getters_with_keep_quoted_props_enabled/input.js
JavaScript
var obj = { a() {}, b() {}, get c() { return "c"; }, get d() { return "d"; }, set e(a) { doSomething(a); }, set f(a) { doSomething(b); }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/methods_and_getters_with_keep_quoted_props_enabled/output.js
JavaScript
var obj = { a () { }, b () { }, get c () { return "c"; }, get d () { return "d"; }, set e (a){ doSomething(a); }, set f (a){ doSomething(b); } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/methods_and_getters_with_keep_quoted_props_enabled/output.mangleOnly.js
JavaScript
var e = { a () {}, b () {}, get c () { return "c"; }, get d () { return "d"; }, set e (a){ doSomething(a); }, set f (a){ doSomething(b); } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/methods_and_getters_with_keep_quoted_props_enabled/output.terser.js
JavaScript
var obj = { a() {}, b() {}, get c() { return "c"; }, get d() { return "d"; }, set e(a) { doSomething(a); }, set f(a) { doSomething(b); }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_to_concise_method/input.js
JavaScript
({ run: () => { console.log("PASS"); }, }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_to_concise_method/output.js
JavaScript
({ run() { console.log("PASS"); }, }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_to_concise_method/output.mangleOnly.js
JavaScript
({ run: ()=>{ console.log("PASS"); } }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_to_concise_method/output.terser.js
JavaScript
({ run() { console.log("PASS"); }, }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_with_nested_this/input.js
JavaScript
function run(arg) { console.log(arg === this ? "global" : arg === foo ? "foo" : arg); } var foo = { func_func_this: function () { (function () { run(this); })(); }, func_arrow_this: function () { (() => { run(this); })(); }, arrow_func_this: () => { (function () { run(this); })(); }, arrow_arrow_this: () => { (() => { run(this); })(); }, }; for (var key in foo) foo[key]();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_with_nested_this/output.js
JavaScript
function run(arg) { console.log(arg === this ? "global" : arg === foo ? "foo" : arg); } var foo = { func_func_this() { (function () { run(this); })(); }, func_arrow_this() { (() => { run(this); })(); }, arrow_func_this() { (function () { run(this); })(); }, arrow_arrow_this: () => { (() => { run(this); })(); }, }; for (var key in foo) foo[key]();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_with_nested_this/output.mangleOnly.js
JavaScript
function n(n) { console.log(n === this ? "global" : n === o ? "foo" : n); } var o = { func_func_this: function() { (function() { n(this); })(); }, func_arrow_this: function() { (()=>{ n(this); })(); }, arrow_func_this: ()=>{ (function() { n(this); })(); }, arrow_arrow_this: ()=>{ (()=>{ n(this); })(); } }; for(var i in o)o[i]();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_with_nested_this/output.terser.js
JavaScript
function run(arg) { console.log(arg === this ? "global" : arg === foo ? "foo" : arg); } var foo = { func_func_this() { (function () { run(this); })(); }, func_arrow_this() { (() => { run(this); })(); }, arrow_func_this() { (function () { run(this); })(); }, arrow_arrow_this: () => { (() => { run(this); })(); }, }; for (var key in foo) foo[key]();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_with_this/input.js
JavaScript
function run(arg) { console.log(arg === this ? "global" : arg === foo ? "foo" : arg); } var foo = { func_no_this: function () { run(); }, func_with_this: function () { run(this); }, arrow_no_this: () => { run(); }, arrow_with_this: () => { run(this); }, }; for (var key in foo) foo[key]();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_with_this/output.js
JavaScript
function run(arg) { console.log(arg === this ? "global" : arg === foo ? "foo" : arg); } var foo = { func_no_this() { run(); }, func_with_this() { run(this); }, arrow_no_this() { run(); }, arrow_with_this: () => { run(this); }, }; for (var key in foo) foo[key]();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_with_this/output.mangleOnly.js
JavaScript
function o(o) { console.log(o === this ? "global" : o === i ? "foo" : o); } var i = { func_no_this: function() { o(); }, func_with_this: function() { o(this); }, arrow_no_this: ()=>{ o(); }, arrow_with_this: ()=>{ o(this); } }; for(var n in i)i[n]();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrow_with_this/output.terser.js
JavaScript
function run(arg) { console.log(arg === this ? "global" : arg === foo ? "foo" : arg); } var foo = { func_no_this() { run(); }, func_with_this() { run(this); }, arrow_no_this() { run(); }, arrow_with_this: () => { run(this); }, }; for (var key in foo) foo[key]();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrows_to_concise_method_various/input.js
JavaScript
({ null: (x, y) => { x(y); }, 123: (x, y) => { x(y); }, "A B": (x, y) => { x(y); }, p1: (x, y) => { x(y); }, p3: async (x, y) => { await x(y); }, [c1]: (x, y) => { x(y); }, [c3]: async (x, y) => { await x(y); }, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrows_to_concise_method_various/output.js
JavaScript
({ null (x, y) { x(y); }, 123 (x, y) { x(y); }, "A B" (x, y) { x(y); }, p1 (x, y) { x(y); }, async p3 (x, y) { await x(y); }, [c1] (x, y) { x(y); }, async [c3] (x, y) { await x(y); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrows_to_concise_method_various/output.mangleOnly.js
JavaScript
({ null: (a, c)=>{ a(c); }, 123: (a, c)=>{ a(c); }, "A B": (a, c)=>{ a(c); }, p1: (a, c)=>{ a(c); }, p3: async (a, c)=>{ await a(c); }, [c1]: (a, c)=>{ a(c); }, [c3]: async (a, c)=>{ await a(c); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_arrows_to_concise_method_various/output.terser.js
JavaScript
({ null(x, y) { x(y); }, 123(x, y) { x(y); }, "A B"(x, y) { x(y); }, p1(x, y) { x(y); }, async p3(x, y) { await x(y); }, [c1](x, y) { x(y); }, async [c3](x, y) { await x(y); }, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_async_concise_method/input.js
JavaScript
({ run: async function () { console.log("PASS"); }, }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_async_concise_method/output.js
JavaScript
({ async run() { console.log("PASS"); }, }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_async_concise_method/output.mangleOnly.js
JavaScript
({ run: async function() { console.log("PASS"); } }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_async_concise_method/output.terser.js
JavaScript
({ async run() { console.log("PASS"); }, }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_concise_method/input.js
JavaScript
({ emit: function NamedFunctionExpression() { console.log("PASS"); }, run: function () { this.emit(); }, }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_concise_method/output.js
JavaScript
({ emit: function NamedFunctionExpression() { console.log("PASS"); }, run() { this.emit(); }, }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_concise_method/output.mangleOnly.js
JavaScript
({ emit: function n() { console.log("PASS"); }, run: function() { this.emit(); } }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_concise_method/output.terser.js
JavaScript
({ emit: function NamedFunctionExpression() { console.log("PASS"); }, run() { this.emit(); }, }.run());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_concise_method_various/input.js
JavaScript
({ null: function (x, y) { x(y); }, 123: function (x, y) { x(y); }, "A B": function (x, y) { x(y); }, p1: function (x, y) { x(y); }, p2: function* (x, y) { yield x(y); }, p3: async function (x, y) { await x(y); }, [c1]: function (x, y) { x(y); }, [c2]: function* (x, y) { yield x(y); }, [c3]: async function (x, y) { await x(y); }, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_concise_method_various/output.js
JavaScript
({ null(x, y) { x(y); }, 123(x, y) { x(y); }, "A B"(x, y) { x(y); }, p1(x, y) { x(y); }, *p2(x, y) { yield x(y); }, async p3(x, y) { await x(y); }, [c1](x, y) { x(y); }, *[c2](x, y) { yield x(y); }, async [c3](x, y) { await x(y); }, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_concise_method_various/output.mangleOnly.js
JavaScript
({ null: function(n, c) { n(c); }, 123: function(n, c) { n(c); }, "A B": function(n, c) { n(c); }, p1: function(n, c) { n(c); }, p2: function*(n, c) { yield n(c); }, p3: async function(n, c) { await n(c); }, [c1]: function(n, c) { n(c); }, [c2]: function*(n, c) { yield n(c); }, [c3]: async function(n, c) { await n(c); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/prop_func_to_concise_method_various/output.terser.js
JavaScript
({ null(x, y) { x(y); }, 123(x, y) { x(y); }, "A B"(x, y) { x(y); }, p1(x, y) { x(y); }, *p2(x, y) { yield x(y); }, async p3(x, y) { await x(y); }, [c1](x, y) { x(y); }, *[c2](x, y) { yield x(y); }, async [c3](x, y) { await x(y); }, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/property_with_operator_value/input.js
JavaScript
var foo = { "*": 1, get "*"() { return 2; }, *"*"() { return 3; }, "%": 1, get "%"() { return 2; }, *"%"() { return 3; }, }; class bar { get "*"() { return 1; } *"*"() { return 2; } get "%"() { return 1; } *"%"() { return 2; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/property_with_operator_value/output.js
JavaScript
var foo = { "*": 1, get "*"() { return 2; }, *"*"() { return 3; }, "%": 1, get "%"() { return 2; }, *"%"() { return 3; }, }; class bar { get "*"() { return 1; } *"*"() { return 2; } get "%"() { return 1; } *"%"() { return 2; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/property_with_operator_value/output.mangleOnly.js
JavaScript
var r = { "*": 1, get "*" () { return 2; }, *"*" () { return 3; }, "%": 1, get "%" () { return 2; }, *"%" () { return 3; } }; class e { get "*"() { return 1; } *"*"() { return 2; } get "%"() { return 1; } *"%"() { return 2; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/object/property_with_operator_value/output.terser.js
JavaScript
var foo = { "*": 1, get "*"() { return 2; }, *"*"() { return 3; }, "%": 1, get "%"() { return 2; }, *"%"() { return 3; }, }; class bar { get "*"() { return 1; } *"*"() { return 2; } get "%"() { return 1; } *"%"() { return 2; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University