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/destructuring/issue_t111_3/input.js
JavaScript
let p = (x) => (console.log(x), x), a = p(1), {} = p(2), c = p(3), {} = p(4);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/issue_t111_3/output.js
JavaScript
let p = (x) => (console.log(x), x), {} = (p(1), p(2)), {} = (p(3), p(4));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/issue_t111_3/output.mangleOnly.js
JavaScript
let l = (l)=>(console.log(l), l), o = l(1), {} = l(2), e = l(3), {} = l(4);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/issue_t111_3/output.terser.js
JavaScript
let p = (x) => (console.log(x), x), {} = (p(1), p(2)), {} = (p(3), p(4));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/issue_t111_4/input.js
JavaScript
let p = (x) => (console.log(x), x), a = 1, { length: length } = [0], c = 3, { x: x } = { x: 2 }; p(`${length} ${x}`);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/issue_t111_4/output.js
JavaScript
let p = (x)=>(console.log(x), x), { length: length } = [ 0 ], { x: x } = { x: 2 }; p(`${length} ${x}`);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/issue_t111_4/output.mangleOnly.js
JavaScript
let l = (l)=>(console.log(l), l), e = 1, { length: o } = [ 0 ], g = 3, { x: n } = { x: 2 }; l(`${o} ${n}`);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/issue_t111_4/output.terser.js
JavaScript
let p = (x) => (console.log(x), x), { length: length } = [0], { x: x } = { x: 2 }; p(`${length} ${x}`);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_assign_toplevel_false/input.js
JavaScript
function test(opts) { let s, o, r; let a = opts.a || { e: 7, n: 8 }; ({ t, e, n, s = 9, o, r } = a); console.log(t, e, n, s, o, r); } let t, e, n; test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_assign_toplevel_false/output.js
JavaScript
function test(o) { let s, l, a; let c = o.a || { e: 7, n: 8 }; ({ t, e, n, s = 9, o: l, r: a } = c); console.log(t, e, n, s, l, a); } let t, e, n; test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_assign_toplevel_false/output.mangleOnly.js
JavaScript
function e(e) { let t, a, c; let s = e.a || { e: 7, n: 8 }; ({ t: l , e: n , n: o , s: t = 9 , o: a , r: c } = s); console.log(l, n, o, t, a, c); } let l, n, o; e({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); e({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_assign_toplevel_false/output.terser.js
JavaScript
function test(o) { let s, l, a; let c = o.a || { e: 7, n: 8 }; ({ t, e, n, s = 9, o: l, r: a } = c); console.log(t, e, n, s, l, a); } let t, e, n; test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_assign_toplevel_true/input.js
JavaScript
function test(opts) { let s, o, r; let a = opts.a || { e: 7, n: 8 }; ({ t, e, n, s = 5 + 4, o, r } = a); console.log(t, e, n, s, o, r); } let t, e, n; test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_assign_toplevel_true/output.js
JavaScript
function e(e) { let l, s, a; let c = e.a || { e: 7, n: 8 }; ({ t: n, e: o, n: t, s: l = 9, o: s, r: a } = c); console.log(n, o, t, l, s, a); } let n, o, t; e({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); e({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_assign_toplevel_true/output.mangleOnly.js
JavaScript
function e(e) { let t, a, c; let s = e.a || { e: 7, n: 8 }; ({ t: l , e: n , n: o , s: t = 5 + 4 , o: a , r: c } = s); console.log(l, n, o, t, a, c); } let l, n, o; e({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); e({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_assign_toplevel_true/output.terser.js
JavaScript
function e(e) { let l, s, a; let c = e.a || { e: 7, n: 8 }; ({ t: n, e: o, n: t, s: l = 9, o: s, r: a } = c); console.log(n, o, t, l, s, a); } let n, o, t; e({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); e({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl/input.js
JavaScript
function test(opts) { let a = opts.a || { e: 7, n: 8 }; let { t: t, e: e, n: n, s: s = 5 + 4, o: o, r: r } = a; console.log(t, e, n, s, o, r); } test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl/output.js
JavaScript
function test(t) { let e = t.a || { e: 7, n: 8 }; let { t: n, e: o, n: s, s: l = 9, o: a, r: c } = e; console.log(n, o, s, l, a, c); } test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl/output.mangleOnly.js
JavaScript
function e(e) { let n = e.a || { e: 7, n: 8 }; let { t: o , e: t , n: l , s: s = 5 + 4 , o: a , r: c } = n; console.log(o, t, l, s, a, c); } e({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); e({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl/output.terser.js
JavaScript
function test(t) { let e = t.a || { e: 7, n: 8 }; let { t: n, e: o, n: s, s: l = 9, o: a, r: c } = e; console.log(n, o, s, l, a, c); } test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl_array/input.js
JavaScript
var [, t, e, n, s, o = 2, r = [1 + 2]] = [9, 8, 7, 6]; console.log(t, e, n, s, o, r);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl_array/output.js
JavaScript
var [, o, l, a, c, e = 2, g = [3]] = [9, 8, 7, 6]; console.log(o, l, a, c, e, g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl_array/output.mangleOnly.js
JavaScript
var [, o, l, a, c, e = 2, g = [ 1 + 2 ]] = [ 9, 8, 7, 6 ]; console.log(o, l, a, c, e, g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl_array/output.terser.js
JavaScript
var [, o, l, a, c, e = 2, g = [3]] = [9, 8, 7, 6]; console.log(o, l, a, c, e, g);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl_collapse_vars/input.js
JavaScript
function test(opts) { let a = opts.a || { e: 7, n: 8 }; let { t: t, e: e, n: n, s: s = 5 + 4, o: o, r: r } = a; console.log(t, e, n, s, o, r); } test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl_collapse_vars/output.js
JavaScript
function test(t) { let e = t.a || { e: 7, n: 8 }; let { t: n, e: o, n: s, s: l = 9, o: a, r: c } = e; console.log(n, o, s, l, a, c); } test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl_collapse_vars/output.mangleOnly.js
JavaScript
function e(e) { let n = e.a || { e: 7, n: 8 }; let { t: o , e: t , n: l , s: s = 5 + 4 , o: a , r: c } = n; console.log(o, t, l, s, a, c); } e({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); e({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/mangle_destructuring_decl_collapse_vars/output.terser.js
JavaScript
function test(t) { let e = t.a || { e: 7, n: 8 }; let { t: n, e: o, n: s, s: l = 9, o: a, r: c } = e; console.log(n, o, s, l, a, c); } test({ a: { t: 1, e: 2, n: 3, s: 4, o: 5, r: 6 } }); test({});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/nested_destructuring_objects/input.js
JavaScript
const [{ a }, b] = c; let [{ d }, e] = f; var [{ g }, h] = i;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/nested_destructuring_objects/output.js
JavaScript
const [{ a }, b] = c; let [{ d }, e] = f; var [{ g }, h] = i;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/nested_destructuring_objects/output.mangleOnly.js
JavaScript
const [{ a: t }, a] = c; let [{ d: e }, l] = f; var [{ g: n }, o] = i;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/nested_destructuring_objects/output.terser.js
JavaScript
const [{ a }, b] = c; let [{ d }, e] = f; var [{ g }, h] = i;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/object_destructuring_may_need_parentheses/input.js
JavaScript
({ a, b } = { a: 1, b: 2 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/object_destructuring_may_need_parentheses/output.js
JavaScript
({ a, b } = { a: 1, b: 2 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/object_destructuring_may_need_parentheses/output.mangleOnly.js
JavaScript
({ a , b } = { a: 1, b: 2 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/object_destructuring_may_need_parentheses/output.terser.js
JavaScript
({ a, b } = { a: 1, b: 2 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/reduce_vars/input.js
JavaScript
{ const [aa, [bb, cc]] = dd; } { let [aa, [bb, cc]] = dd; } var [aa, [bb, cc]] = dd; [aa, [bb, cc]] = dd; { const { aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }; } { let { aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }; } var { aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }; ({ aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }); const [{ a: a }, b] = c; let [{ d: d }, e] = f; var [{ g: g }, h] = i; [{ a: a }, b] = c; for (const [x, y] in pairs); for (let [x, y] in pairs); for (var [x, y] in pairs); for ([x, y] in pairs);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/reduce_vars/output.js
JavaScript
{ const [aa, [bb, cc]] = dd; } { let [aa, [bb, cc]] = dd; } var [aa, [bb, cc]] = dd; [aa, [bb, cc]] = dd; { const { aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }; } { let { aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }; } var { aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }; ({ aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }); const [{ a: a }, b] = c; let [{ d: d }, e] = f; var [{ g: g }, h] = i; [{ a: a }, b] = c; for (const [x, y] in pairs); for (let [x, y] in pairs); for (var [x, y] in pairs); for ([x, y] in pairs);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/reduce_vars/output.mangleOnly.js
JavaScript
{ const [a, [d, b]] = r; }{ let [a, [d, b]] = r; }var [a, [d, b]] = r; [a, [d, b]] = r; { const { aa: a , bb: { cc: d , dd: b } } = { aa: 1, bb: { cc: 2, dd: 3 } }; }{ let { aa: a , bb: { cc: d , dd: b } } = { aa: 1, bb: { cc: 2, dd: 3 } }; }var { aa: a , bb: { cc: b , dd: r } } = { aa: 1, bb: { cc: 2, dd: 3 } }; ({ aa: a , bb: { cc: b , dd: r } } = { aa: 1, bb: { cc: 2, dd: 3 } }); const [{ a: n }, o] = c; let [{ d: s }, t] = f; var [{ g: e }, l] = i; [{ a: n }, o] = c; for(const [a, d] in pairs); for(let [a, d] in pairs); for(var [p, v] in pairs); for([p, v] in pairs);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/reduce_vars/output.terser.js
JavaScript
{ const [aa, [bb, cc]] = dd; } { let [aa, [bb, cc]] = dd; } var [aa, [bb, cc]] = dd; [aa, [bb, cc]] = dd; { const { aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }; } { let { aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }; } var { aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }; ({ aa: aa, bb: { cc: cc, dd: dd }, } = { aa: 1, bb: { cc: 2, dd: 3 } }); const [{ a: a }, b] = c; let [{ d: d }, e] = f; var [{ g: g }, h] = i; [{ a: a }, b] = c; for (const [x, y] in pairs); for (let [x, y] in pairs); for (var [x, y] in pairs); for ([x, y] in pairs);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused/input.js
JavaScript
let { foo: [, , ...a], } = { foo: [1, 2, 3, 4], bar: 5 }; console.log(a);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused/output.js
JavaScript
let { foo: [, , ...a], } = { foo: [1, 2, 3, 4], bar: 5 }; console.log(a);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused/output.mangleOnly.js
JavaScript
let { foo: [, , ...o] , } = { foo: [ 1, 2, 3, 4 ], bar: 5 }; console.log(o);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused/output.terser.js
JavaScript
let { foo: [, , ...a], } = { foo: [1, 2, 3, 4], bar: 5 }; console.log(a);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_arrow_param/input.js
JavaScript
let bar = ({ w: w = console.log("side effect"), x: x, y: z }) => { console.log(x); }; bar({ x: 4, y: 5, z: 6 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_arrow_param/output.js
JavaScript
let bar = ({ w: w = console.log("side effect"), x: x }) => { console.log(x); }; bar({ x: 4, y: 5, z: 6 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_arrow_param/output.mangleOnly.js
JavaScript
let e = ({ w: e = console.log("side effect") , x: o , y: l })=>{ console.log(o); }; e({ x: 4, y: 5, z: 6 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_arrow_param/output.terser.js
JavaScript
let bar = ({ w: w = console.log("side effect"), x: x }) => { console.log(x); }; bar({ x: 4, y: 5, z: 6 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_assign_1/input.js
JavaScript
function extract(obj) { var a; let b; ({ a: a, b: b } = obj); console.log(b); } extract({ a: 1, b: 2 }); extract({ b: 4 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_assign_1/output.js
JavaScript
function extract(obj) { var a; let b; ({ a: a, b: b } = obj); console.log(b); } extract({ a: 1, b: 2 }); extract({ b: 4 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_assign_1/output.mangleOnly.js
JavaScript
function o(o) { var a; let b; ({ a: a , b: b } = o); console.log(b); } o({ a: 1, b: 2 }); o({ b: 4 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_assign_1/output.terser.js
JavaScript
function extract(obj) { var a; let b; ({ a: a, b: b } = obj); console.log(b); } extract({ a: 1, b: 2 }); extract({ b: 4 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_assign_2/input.js
JavaScript
function extract(obj) { var a; let b; ({ a: a, b: b } = obj); console.log(b); } extract({ a: 1, b: 2 }); extract({ get a() { var s = "side effect"; console.log(s); return s; }, b: 4, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_assign_2/output.js
JavaScript
function extract(obj) { var a; let b; ({ a: a, b: b } = obj); console.log(b); } extract({ a: 1, b: 2 }); extract({ get a() { var s = "side effect"; console.log(s); return s; }, b: 4, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_assign_2/output.mangleOnly.js
JavaScript
function e(e) { var o; let a; ({ a: o , b: a } = e); console.log(a); } e({ a: 1, b: 2 }); e({ get a () { var o = "side effect"; console.log(o); return o; }, b: 4 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_assign_2/output.terser.js
JavaScript
function extract(obj) { var a; let b; ({ a: a, b: b } = obj); console.log(b); } extract({ a: 1, b: 2 }); extract({ get a() { var s = "side effect"; console.log(s); return s; }, b: 4, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_class_method_param/input.js
JavaScript
new (class { baz({ w: w = console.log("side effect"), x: x, y: z }) { console.log(x); } })().baz({ x: 7, y: 8, z: 9 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_class_method_param/output.js
JavaScript
new (class { baz({ w: w = console.log("side effect"), x: x }) { console.log(x); } })().baz({ x: 7, y: 8, z: 9 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_class_method_param/output.mangleOnly.js
JavaScript
new (class { baz({ w: e = console.log("side effect") , x: o , y: l }) { console.log(o); } })().baz({ x: 7, y: 8, z: 9 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_class_method_param/output.terser.js
JavaScript
new (class { baz({ w: w = console.log("side effect"), x: x }) { console.log(x); } })().baz({ x: 7, y: 8, z: 9 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_1/input.js
JavaScript
let { x: L, y: y } = { x: 2 }; var { U: u, V: V } = { V: 3 }; const { C: C, D: D } = { C: 1, D: 4 }; console.log(L, V);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_1/output.js
JavaScript
let { x: L } = { x: 2 }; var { V: V } = { V: 3 }; console.log(L, V);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_1/output.mangleOnly.js
JavaScript
let { x: o , y: l } = { x: 2 }; var { U: c , V: e } = { V: 3 }; const { C: n , D: s } = { C: 1, D: 4 }; console.log(o, e);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_1/output.terser.js
JavaScript
let { x: L } = { x: 2 }; var { V: V } = { V: 3 }; console.log(L, V);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_2/input.js
JavaScript
const { a: a, b: c, d: d = new Object(1) } = { b: 7 }; let { e: e, f: g, h: h = new Object(2) } = { e: 8 }; var { w: w, x: y, z: z = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_2/output.js
JavaScript
const { a: a , b: c , d: d = Object(1) } = { b: 7 }; let { e: e , f: g , h: h = Object(2) } = { e: 8 }; var { w: w , x: y , z: z = Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_2/output.mangleOnly.js
JavaScript
const { a: e , b: b , d: c = new Object(1) } = { b: 7 }; let { e: n , f: t , h: w = new Object(2) } = { e: 8 }; var { w: o , x: j , z: l = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(b, n, l + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_2/output.terser.js
JavaScript
const { a: a, b: c, d: d = new Object(1) } = { b: 7 }; let { e: e, f: g, h: h = new Object(2) } = { e: 8 }; var { w: w, x: y, z: z = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_3/input.js
JavaScript
const { a: a, b: c, d: d = new Object(1) } = { b: 7 }; let { e: e, f: g, h: h = new Object(2) } = { e: 8 }; var { w: w, x: y, z: z = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_3/output.js
JavaScript
const { a: a , b: c , d: d = Object(1) } = { b: 7 }; let { e: e , f: g , h: h = Object(2) } = { e: 8 }; var { w: w , x: y , z: z = Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_3/output.mangleOnly.js
JavaScript
const { a: e , b: b , d: c = new Object(1) } = { b: 7 }; let { e: n , f: t , h: w = new Object(2) } = { e: 8 }; var { w: o , x: j , z: l = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(b, n, l + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_3/output.terser.js
JavaScript
const { a: a, b: c, d: d = new Object(1) } = { b: 7 }; let { e: e, f: g, h: h = new Object(2) } = { e: 8 }; var { w: w, x: y, z: z = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_4/input.js
JavaScript
const { a: a, b: c, d: d = new Object(1) } = { b: 7 }; let { e: e, f: g, h: h = new Object(2) } = { e: 8 }; var { w: w, x: y, z: z = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_4/output.js
JavaScript
const { a: a , b: c , d: d = Object(1) } = { b: 7 }; let { e: e , f: g , h: h = Object(2) } = { e: 8 }; var { w: w , x: y , z: z = Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_4/output.mangleOnly.js
JavaScript
const { a: e , b: b , d: c = new Object(1) } = { b: 7 }; let { e: n , f: t , h: w = new Object(2) } = { e: 8 }; var { w: o , x: j , z: l = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(b, n, l + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_4/output.terser.js
JavaScript
const { a: a, b: c, d: d = new Object(1) } = { b: 7 }; let { e: e, f: g, h: h = new Object(2) } = { e: 8 }; var { w: w, x: y, z: z = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_5/input.js
JavaScript
const { a: a, b: c, d: d = new Object(1) } = { b: 7 }; let { e: e, f: g, h: h = new Object(2) } = { e: 8 }; var { w: w, x: y, z: z = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_5/output.js
JavaScript
const { a: a , b: c , d: d = Object(1) } = { b: 7 }; let { e: e , h: h = Object(2) } = { e: 8 }; var { w: w , z: z = Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_5/output.mangleOnly.js
JavaScript
const { a: e , b: b , d: c = new Object(1) } = { b: 7 }; let { e: n , f: t , h: w = new Object(2) } = { e: 8 }; var { w: o , x: j , z: l = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(b, n, l + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_5/output.terser.js
JavaScript
const { a: a, b: c, d: d = new Object(1) } = { b: 7 }; let { e: e, h: h = new Object(2) } = { e: 8 }; var { w: w, z: z = new Object(3) } = { w: 4, x: 5, y: 6 }; console.log(c, e, z + 0);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_6/input.js
JavaScript
const { a: a, b: c, ...d } = { b: 7 }; let { e: e, f: g, ...h } = { e: 8 }; var { w: w, x: y, ...z } = { w: 4, x: 5, y: 6 }; console.log(c, e, z.y);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_6/output.js
JavaScript
const { a: a, b: c, ...d } = { b: 7 }; let { e: e, f: g, ...h } = { e: 8 }; var { w: w, x: y, ...z } = { w: 4, x: 5, y: 6 }; console.log(c, e, z.y);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_6/output.mangleOnly.js
JavaScript
const { a: e , b: o , ...l } = { b: 7 }; let { e: a , f: b , ...c } = { e: 8 }; var { w: n , x: s , ...t } = { w: 4, x: 5, y: 6 }; console.log(o, a, t.y);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_decl_6/output.terser.js
JavaScript
const { a: a, b: c, ...d } = { b: 7 }; let { e: e, f: g, ...h } = { e: 8 }; var { w: w, x: y, ...z } = { w: 4, x: 5, y: 6 }; console.log(c, e, z.y);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_declaration_complex_1/input.js
JavaScript
const [, w, , x, { y: y, z: z }] = [1, 2, 3, 4, { z: 5 }]; console.log(x, z);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_declaration_complex_1/output.js
JavaScript
const [, , , x, { z: z }] = [ 1, 2, 3, 4, { z: 5 } ]; console.log(x, z);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_declaration_complex_1/output.mangleOnly.js
JavaScript
const [, o, , c, { y: l , z: n }] = [ 1, 2, 3, 4, { z: 5 } ]; console.log(c, n);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_declaration_complex_1/output.terser.js
JavaScript
const [, w, , x, { z: z }] = [1, 2, 3, 4, { z: 5 }]; console.log(x, z);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_declaration_complex_2/input.js
JavaScript
const [, w, , x, { y: y, z: z }] = [1, 2, 3, 4, { z: 5 }]; console.log(x, z);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_declaration_complex_2/output.js
JavaScript
const [, w, , x, { y: y, z: z }] = [1, 2, 3, 4, { z: 5 }]; console.log(x, z);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_declaration_complex_2/output.mangleOnly.js
JavaScript
const [, o, , c, { y: l , z: n }] = [ 1, 2, 3, 4, { z: 5 } ]; console.log(c, n);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_declaration_complex_2/output.terser.js
JavaScript
const [, w, , x, { y: y, z: z }] = [1, 2, 3, 4, { z: 5 }]; console.log(x, z);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_function_param/input.js
JavaScript
function foo({ w: w = console.log("side effect"), x: x, y: z }) { console.log(x); } foo({ x: 1, y: 2, z: 3 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_function_param/output.js
JavaScript
function foo({ w: w = console.log("side effect"), x: x }) { console.log(x); } foo({ x: 1, y: 2, z: 3 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_function_param/output.mangleOnly.js
JavaScript
function o({ w: o = console.log("side effect") , x: e , y: c }) { console.log(e); } o({ x: 1, y: 2, z: 3 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_function_param/output.terser.js
JavaScript
function foo({ w: w = console.log("side effect"), x: x }) { console.log(x); } foo({ x: 1, y: 2, z: 3 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_getter_side_effect_1/input.js
JavaScript
function extract(obj) { const { a: a, b: b } = obj; console.log(b); } extract({ a: 1, b: 2 }); extract({ get a() { var s = "side effect"; console.log(s); return s; }, b: 4, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_getter_side_effect_1/output.js
JavaScript
function extract(obj) { const { a: a, b: b } = obj; console.log(b); } extract({ a: 1, b: 2 }); extract({ get a() { var s = "side effect"; console.log(s); return s; }, b: 4, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_getter_side_effect_1/output.mangleOnly.js
JavaScript
function o(o) { const { a: e , b: n } = o; console.log(n); } o({ a: 1, b: 2 }); o({ get a () { var e = "side effect"; console.log(e); return e; }, b: 4 });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/terser/compress/destructuring/unused_destructuring_getter_side_effect_1/output.terser.js
JavaScript
function extract(obj) { const { a: a, b: b } = obj; console.log(b); } extract({ a: 1, b: 2 }); extract({ get a() { var s = "side effect"; console.log(s); return s; }, b: 4, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University