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/block_scope/switch_block_scope_mangler/output.terser.js | JavaScript | var fn = function (e) {
switch (e) {
case 1:
let l = e + 1;
let o = e + 4;
console.log(l, o);
break;
case 2:
let n = e + 2;
console.log(n);
break;
default:
let c = e + 3;
console.log(c);
}
};
fn(1);
fn(2);
fn(3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1664/input.js | JavaScript | var a = 1;
function f() {
if (undefined) a = 2;
{
function undefined() {}
undefined();
}
}
f();
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1664/output.js | JavaScript | var a = 1;
function f() {
if (undefined) a = 2;
{
function undefined() {}
undefined();
}
}
f();
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1664/output.mangleOnly.js | JavaScript | var n = 1;
function o() {
if (o) n = 2;
{
function o() {}
o();
}
}
o();
console.log(n);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1664/output.terser.js | JavaScript | var a = 1;
function f() {
if (undefined) a = 2;
{
function undefined() {}
undefined();
}
}
f();
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_for/input.js | JavaScript | switch (
function () {
return xxx;
}
) {
case xxx:
for (; console.log("FAIL"); ) {
function xxx() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_for/output.js | JavaScript | switch(function() {
return xxx;
}){
case xxx:
for(; console.log("FAIL");){
function xxx() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_for/output.mangleOnly.js | JavaScript | switch(function() {
return n;
}){
case n:
for(; console.log("FAIL");){
function n() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_for/output.terser.js | JavaScript | switch (
function () {
return xxx;
}
) {
case xxx:
for (; console.log("FAIL"); ) {
function xxx() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_for_strict/input.js | JavaScript | "use strict";
switch (
function () {
return xxx;
}
) {
case xxx:
for (; console.log("FAIL"); ) {
function xxx() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_for_strict/output.js | JavaScript | "use strict";
switch(function() {
return xxx;
}){
case xxx:
for(; console.log("FAIL");){
function xxx1() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_for_strict/output.mangleOnly.js | JavaScript | "use strict";
switch(function() {
return xxx;
}){
case xxx:
for(; console.log("FAIL");){
function c() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_for_strict/output.terser.js | JavaScript | "use strict";
switch (
function () {
return xxx;
}
) {
case xxx:
for (; console.log("FAIL"); ) {
function xxx() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_if/input.js | JavaScript | switch (
function () {
return xxx;
}
) {
case xxx:
if (console.log("FAIL")) {
function xxx() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_if/output.js | JavaScript | switch(function() {
return xxx;
}){
case xxx:
if (console.log("FAIL")) function xxx() {}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_if/output.mangleOnly.js | JavaScript | switch(function() {
return n;
}){
case n:
if (console.log("FAIL")) {
function n() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_if/output.terser.js | JavaScript | switch (
function () {
return xxx;
}
) {
case xxx:
if (console.log("FAIL")) function xxx() {}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_if_strict/input.js | JavaScript | "use strict";
switch (
function () {
return xxx;
}
) {
case xxx:
if (console.log("FAIL")) {
function xxx() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_if_strict/output.js | JavaScript | "use strict";
switch(function() {
return xxx;
}){
case xxx:
if (console.log("FAIL")) {
function xxx1() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_if_strict/output.mangleOnly.js | JavaScript | "use strict";
switch(function() {
return xxx;
}){
case xxx:
if (console.log("FAIL")) {
function c() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_1672_if_strict/output.terser.js | JavaScript | "use strict";
switch (
function () {
return xxx;
}
) {
case xxx:
if (console.log("FAIL")) {
function xxx() {}
}
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_2946_else_const/input.js | JavaScript | if (1) {
const x = 6;
} else {
const y = 12;
}
if (2) {
let z = 24;
} else {
let w = 48;
}
if (3) {
class X {}
} else {
class Y {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_2946_else_const/output.js | JavaScript | if (1) {
const x = 6;
} else {
const y = 12;
}
if (2) {
let z = 24;
} else {
let w = 48;
}
if (3) {
class X {}
} else {
class Y {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_2946_else_const/output.mangleOnly.js | JavaScript | if (1) {
const s = 6;
} else {
const s = 12;
}
if (2) {
let s = 24;
} else {
let s = 48;
}
if (3) {
class s {
}
} else {
class s {
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/issue_2946_else_const/output.terser.js | JavaScript | if (1) {
const x = 6;
} else {
const y = 12;
}
if (2) {
let z = 24;
} else {
let w = 48;
}
if (3) {
class X {}
} else {
class Y {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/keep_some_blocks/input.js | JavaScript | if (foo) {
{
{
{
}
}
}
if (bar) {
baz();
}
{
{
}
}
} else {
stuff();
}
if (foo) {
for (var i = 0; i < 5; ++i) if (bar) baz();
} else {
stuff();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/keep_some_blocks/output.js | JavaScript | if (foo) {
if (bar) baz();
} else stuff();
if (foo) {
for (var i = 0; i < 5; ++i) if (bar) baz();
} else stuff();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/keep_some_blocks/output.mangleOnly.js | JavaScript | if (foo) {
{
{
{}
}
}
if (bar) {
baz();
}
{
{}
}
} else {
stuff();
}
if (foo) {
for(var f = 0; f < 5; ++f)if (bar) baz();
} else {
stuff();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/keep_some_blocks/output.terser.js | JavaScript | if (foo) {
if (bar) baz();
} else stuff();
if (foo) {
for (var i = 0; i < 5; ++i) if (bar) baz();
} else stuff();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/remove_blocks/input.js | JavaScript | {
}
foo();
{
}
{
{
}
}
bar();
{
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/remove_blocks/output.js | JavaScript | foo();
bar();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/remove_blocks/output.mangleOnly.js | JavaScript | {}foo();
{}{
{}
}bar();
{}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/blocks/remove_blocks/output.terser.js | JavaScript | foo();
bar();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/basic_class_properties/input.js | JavaScript | class A {
static foo;
bar;
static fil = "P";
another = "A";
get;
set = "S";
#private;
#private2 = "S";
toString() {
if ("bar" in this && "foo" in A) {
return A.fil + this.another + this.set + this.#private2;
}
}
}
console.log(new A().toString());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/basic_class_properties/output.mangleOnly.js | JavaScript | class t {
static foo;
bar;
static fil = "P";
another = "A";
get;
set = "S";
#t;
#i = "S";
toString() {
if ("bar" in this && "foo" in t) {
return t.fil + this.another + this.set + this.#i;
}
}
}
console.log(new t().toString());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_constant/input.js | JavaScript | const obj = {};
obj.Class1 = class {
static foo = "constant";
};
obj.Class2 = class extends Obj.Class1 {};
new obj.Class2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_constant/output.js | JavaScript | const obj = {
Class1: class {
static foo = "constant";
},
};
obj.Class2 = class extends Obj.Class1 {};
new obj.Class2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_constant/output.mangleOnly.js | JavaScript | const s = {};
s.Class1 = class {
static foo = "constant";
};
s.Class2 = class extends Obj.Class1 {
};
new s.Class2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_constant/output.terser.js | JavaScript | const obj = {
Class1: class {
static foo = "constant";
},
};
obj.Class2 = class extends Obj.Class1 {};
new obj.Class2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_not_constant/input.js | JavaScript | const obj = {};
leak();
obj.Class1 = class {
static foo = leak();
};
obj.Class2 = class extends Obj.Class1 {};
new obj.Class2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_not_constant/output.js | JavaScript | const obj = {};
leak();
obj.Class1 = class {
static foo = leak();
};
obj.Class2 = class extends Obj.Class1 {};
new obj.Class2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_not_constant/output.mangleOnly.js | JavaScript | const s = {};
leak();
s.Class1 = class {
static foo = leak();
};
s.Class2 = class extends Obj.Class1 {
};
new s.Class2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_not_constant/output.terser.js | JavaScript | const obj = {};
leak();
obj.Class1 = class {
static foo = leak();
};
obj.Class2 = class extends Obj.Class1 {};
new obj.Class2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_properties_side_effects/input.js | JavaScript | global.side = () => {
console.log("PASS");
};
(class {
static foo = side();
[side()]() {}
[side()] = 4;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_properties_side_effects/output.js | JavaScript | global.side = () => {
console.log("PASS");
};
side(), side(), side();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_properties_side_effects/output.mangleOnly.js | JavaScript | global.side = ()=>{
console.log("PASS");
};
(class {
static foo = side();
[side()]() {}
[side()] = 4;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/class_expression_properties_side_effects/output.terser.js | JavaScript | global.side = () => {
console.log("PASS");
};
side(), side(), side();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/computed_class_properties/input.js | JavaScript | const x = "FOO";
const y = "BAR";
class X {
[x] = "PASS";
static [y];
}
if ("BAR" in X) {
console.log(new X()[x]);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/computed_class_properties/output.mangleOnly.js | JavaScript | const s = "FOO";
const c = "BAR";
class n {
[s] = "PASS";
static [c];
}
if ("BAR" in n) {
console.log(new n()[s]);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/mangle_class_properties/input.js | JavaScript | class Foo {
bar = "bar";
static zzz = "zzz";
toString() {
return this.bar + Foo.zzz;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/mangle_class_properties/output.js | JavaScript | class Foo {
z = "bar";
static r = "zzz";
toString() {
return this.z + Foo.r;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/mangle_class_properties/output.mangleOnly.js | JavaScript | class z {
bar = "bar";
static zzz = "zzz";
toString() {
return this.bar + z.zzz;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/mangle_class_properties/output.terser.js | JavaScript | class Foo {
t = "bar";
static o = "zzz";
toString() {
return this.t + Foo.o;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/mangle_class_properties_keep_quoted/input.js | JavaScript | class Foo {
bar = "bar";
static zzz = "zzz";
toString() {
return this.bar + Foo.zzz;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/mangle_class_properties_keep_quoted/output.js | JavaScript | class Foo {
bar = "bar";
static zzz = "zzz";
toString() {
return this.bar + Foo.zzz;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/mangle_class_properties_keep_quoted/output.mangleOnly.js | JavaScript | class z {
bar = "bar";
static zzz = "zzz";
toString() {
return this.bar + z.zzz;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/mangle_class_properties_keep_quoted/output.terser.js | JavaScript | class Foo {
bar = "bar";
static zzz = "zzz";
toString() {
return this.bar + Foo.zzz;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/static_class_properties_side_effects/input.js | JavaScript | class A {
foo = console.log("PASS2");
static bar = console.log("PASS1");
}
new A();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/static_class_properties_side_effects/output.mangleOnly.js | JavaScript | class o {
foo = console.log("PASS2");
static bar = console.log("PASS1");
}
new o();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/static_means_execution/input.js | JavaScript | let x = 0;
class NoProps {}
class WithProps {
prop = (x = x === 1 ? "PASS" : "FAIL");
}
class WithStaticProps {
static prop = (x = x === 0 ? 1 : "FAIL");
}
new NoProps();
new WithProps();
new WithStaticProps();
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/static_means_execution/output.js | JavaScript | let x = 0;
class WithStaticProps {
static prop = (x = 0 === x ? 1 : "FAIL");
}
new (class {})();
new (class {
prop = (x = 1 === x ? "PASS" : "FAIL");
})();
new WithStaticProps();
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/static_means_execution/output.mangleOnly.js | JavaScript | let s = 0;
class l {
}
class c {
prop = (s = s === 1 ? "PASS" : "FAIL");
}
class e {
static prop = (s = s === 0 ? 1 : "FAIL");
}
new l();
new c();
new e();
console.log(s);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/static_means_execution/output.terser.js | JavaScript | let x = 0;
class WithStaticProps {
static prop = (x = 0 === x ? 1 : "FAIL");
}
new (class {})();
new (class {
prop = (x = 1 === x ? "PASS" : "FAIL");
})();
new WithStaticProps();
console.log(x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/static_property_side_effects/input.js | JavaScript | let x = "FAIL";
class cls {
static [x = "PASS"];
}
console.log(x);
class cls2 {
static [console.log("PASS")];
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/class_properties/static_property_side_effects/output.mangleOnly.js | JavaScript | let s = "FAIL";
class l {
static [s = "PASS"];
}
console.log(s);
class c {
static [console.log("PASS")];
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_duplication/input.js | JavaScript | class Foo {
foo() {
leak(new Foo());
}
}
export default Foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_duplication/output.js | JavaScript | class Foo {
foo() {
leak(new Foo());
}
}
export default Foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_duplication/output.mangleOnly.js | JavaScript | class e {
foo() {
leak(new e());
}
}
export default e;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_duplication/output.terser.js | JavaScript | class Foo {
foo() {
leak(new Foo());
}
}
export default Foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_duplication_2/input.js | JavaScript | class Foo {
foo() {
leak(new Foo());
}
}
leak(Foo);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_duplication_2/output.js | JavaScript | class Foo {
foo() {
leak(new Foo());
}
}
leak(Foo);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_duplication_2/output.mangleOnly.js | JavaScript | class a {
foo() {
leak(new a());
}
}
leak(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_duplication_2/output.terser.js | JavaScript | class Foo {
foo() {
leak(new Foo());
}
}
leak(Foo);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_recursive_refs/input.js | JavaScript | class a {
set() {
class b {
set [b](c) {}
}
}
}
class b {
constructor() {
b();
}
}
class c {
[c] = 42;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_recursive_refs/output.js | JavaScript | class c {
[c] = 42;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/class_recursive_refs/output.mangleOnly.js | JavaScript | class s {
set() {
class s {
set [s](s) {}
}
}
}
class c {
constructor(){
c();
}
}
class a {
[a] = 42;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/pure_prop_assignment_for_classes/input.js | JavaScript | class A {}
A.staticProp = "A";
class B {
static get danger() {}
}
B.staticProp = "";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/classes/pure_prop_assignment_for_classes/output.mangleOnly.js | JavaScript | class s {
}
s.staticProp = "A";
class t {
static get danger() {}
}
t.staticProp = "";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/anonymous_function/input.js | JavaScript | console.log(
(function f(a) {
f ^= 0;
return f * a;
})(1)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/anonymous_function/output.js | JavaScript | console.log(
(function f(a) {
f ^= 0;
return f * a;
})(1)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/anonymous_function/output.mangleOnly.js | JavaScript | console.log((function n(o) {
n ^= 0;
return n * o;
})(1));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/anonymous_function/output.terser.js | JavaScript | console.log(
(function f(a) {
f ^= 0;
return f * a;
})(1)
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/assignment/input.js | JavaScript | function f() {
var a;
a = x;
return a;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/assignment/output.js | JavaScript | function f() {
return x;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/assignment/output.mangleOnly.js | JavaScript | function n() {
var n;
n = x;
return n;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/assignment/output.terser.js | JavaScript | function f() {
return x;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/boolean_binary_1/input.js | JavaScript | var a = 1;
a++;
((function () {} || a || 3).toString());
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/boolean_binary_1/output.js | JavaScript | var a = 1;
a++;
(function () {}.toString());
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/boolean_binary_1/output.mangleOnly.js | JavaScript | var o = 1;
o++;
((function() {} || o || 3).toString());
console.log(o);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/boolean_binary_1/output.terser.js | JavaScript | var a = 1;
a++;
((function () {} || a || 3).toString());
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/boolean_binary_2/input.js | JavaScript | var c = 0;
c += 1;
((
function () {
c = 1 + c;
} || 9
).toString());
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/boolean_binary_2/output.js | JavaScript | var c = 0;
c += 1;
(function () {
c = 1 + c;
}.toString());
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/boolean_binary_2/output.mangleOnly.js | JavaScript | var o = 0;
o += 1;
((function() {
o = 1 + o;
} || 9).toString());
console.log(o);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/boolean_binary_2/output.terser.js | JavaScript | var c = 0;
c += 1;
((
function () {
c = 1 + c;
} || 9
).toString());
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/cascade_call/input.js | JavaScript | function f(a) {
var b;
return x(((b = a), y(b)));
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/cascade_call/output.js | JavaScript | function f(a) {
return x(y(a));
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/cascade_call/output.mangleOnly.js | JavaScript | function n(n) {
var r;
return x(((r = n), y(r)));
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/cascade_call/output.terser.js | JavaScript | function f(a) {
return x(y(a));
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/cascade_conditional/input.js | JavaScript | function f(a, b) {
((a = x()), a) ? a++ : ((b = y(a)), b(a));
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/collapse_vars/cascade_conditional/output.js | JavaScript | function f(a, b) {
(a = x()) ? a++ : (b = y(a))(a);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.