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/properties/join_object_assignments_negative/output.mangleOnly.js | JavaScript | var o = {};
o[0] = 0;
o[-0] = 1;
o[-1] = 2;
console.log(o[0], o[-0], o[-1]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_negative/output.terser.js | JavaScript | var o = { 0: (0, 1), "-1": 2 };
console.log(o[0], o[-0], o[-1]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_null_0/input.js | JavaScript | var o = {};
o[null] = 1;
console.log(o[null]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_null_0/output.js | JavaScript | var o = {};
o[null] = 1;
console.log(o[null]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_null_0/output.mangleOnly.js | JavaScript | var l = {};
l[null] = 1;
console.log(l[null]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_null_0/output.terser.js | JavaScript | var o = {};
o[null] = 1;
console.log(o[null]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_null_1/input.js | JavaScript | var o = {};
o[null] = 1;
console.log(o[null]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_null_1/output.js | JavaScript | var o = { null: 1 };
console.log(o.null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_null_1/output.mangleOnly.js | JavaScript | var l = {};
l[null] = 1;
console.log(l[null]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_null_1/output.terser.js | JavaScript | var o = { null: 1 };
console.log(o.null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_regex/input.js | JavaScript | var o = {};
o[/rx/] = 1;
console.log(o[/rx/]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_regex/output.js | JavaScript | var o = { "/rx/": 1 };
console.log(o[/rx/]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_regex/output.mangleOnly.js | JavaScript | var o = {};
o[/rx/] = 1;
console.log(o[/rx/]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_regex/output.terser.js | JavaScript | var o = { "/rx/": 1 };
console.log(o[/rx/]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_1/input.js | JavaScript | console.log(
(function () {
var o = { p: 3 };
return (o.q = "foo");
})()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_1/output.js | JavaScript | console.log(
(function () {
var o = { p: 3, q: "foo" };
return o.q;
})()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_1/output.mangleOnly.js | JavaScript | console.log((function() {
var o = {
p: 3
};
return (o.q = "foo");
})());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_1/output.terser.js | JavaScript | console.log(
(function () {
var o = { p: 3, q: "foo" };
return o.q;
})()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_2/input.js | JavaScript | console.log(
(function () {
var o = { p: 3 };
return (o.q = /foo/), (o.r = "bar");
})()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_2/output.js | JavaScript | console.log(
(function () {
var o = { p: 3, q: /foo/, r: "bar" };
return o.r;
})()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_2/output.mangleOnly.js | JavaScript | console.log((function() {
var o = {
p: 3
};
return (o.q = /foo/), (o.r = "bar");
})());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_2/output.terser.js | JavaScript | console.log(
(function () {
var o = { p: 3, q: /foo/, r: "bar" };
return o.r;
})()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_3/input.js | JavaScript | console.log(
(function () {
var o = { p: 3 };
return (o.q = "foo"), (o.p += ""), console.log(o.q), o.p;
})()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_3/output.js | JavaScript | console.log(
(function () {
var o = { p: 3, q: "foo" };
return (o.p += ""), console.log(o.q), o.p;
})()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_3/output.mangleOnly.js | JavaScript | console.log((function() {
var o = {
p: 3
};
return (o.q = "foo"), (o.p += ""), console.log(o.q), o.p;
})());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_return_3/output.terser.js | JavaScript | console.log(
(function () {
var o = { p: 3, q: "foo" };
return (o.p += ""), console.log(o.q), o.p;
})()
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_undefined_1/input.js | JavaScript | var o = {};
o[undefined] = 1;
console.log(o[undefined]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_undefined_1/output.js | JavaScript | var o = {};
o[void 0] = 1;
console.log(o[void 0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_undefined_1/output.mangleOnly.js | JavaScript | var e = {};
e[undefined] = 1;
console.log(e[undefined]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_undefined_1/output.terser.js | JavaScript | var o = {};
o[void 0] = 1;
console.log(o[void 0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_undefined_2/input.js | JavaScript | var o = {};
o[undefined] = 1;
console.log(o[undefined]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_undefined_2/output.js | JavaScript | var o = { undefined: 1 };
console.log(o[void 0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_undefined_2/output.mangleOnly.js | JavaScript | var e = {};
e[undefined] = 1;
console.log(e[undefined]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_undefined_2/output.terser.js | JavaScript | var o = { undefined: 1 };
console.log(o[void 0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_void_0/input.js | JavaScript | var o = {};
o[void 0] = 1;
console.log(o[void 0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_void_0/output.js | JavaScript | var o = { undefined: 1 };
console.log(o[void 0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_void_0/output.mangleOnly.js | JavaScript | var o = {};
o[void 0] = 1;
console.log(o[void 0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/join_object_assignments_void_0/output.terser.js | JavaScript | var o = { undefined: 1 };
console.log(o[void 0]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/keep_properties/input.js | JavaScript | a["foo"] = "bar";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/keep_properties/output.js | JavaScript | a["foo"] = "bar";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/keep_properties/output.mangleOnly.js | JavaScript | a["foo"] = "bar";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/keep_properties/output.terser.js | JavaScript | a["foo"] = "bar";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/lhs_prop_1/input.js | JavaScript | console.log(++{ a: 1 }.a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/lhs_prop_1/output.js | JavaScript | console.log(++{
a: 1
}.a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/lhs_prop_1/output.mangleOnly.js | JavaScript | console.log(++{
a: 1
}.a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/lhs_prop_1/output.terser.js | JavaScript | console.log(++{ a: 1 }.a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/lhs_prop_2/input.js | JavaScript | [1][0] = 42;
(function (a) {
a.b = "g";
})("abc");
(function (a) {
a[2] = "g";
})("def");
(function (a) {
a[""] = "g";
})("ghi");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/lhs_prop_2/output.js | JavaScript | [
1
][0] = 42;
"abc".b = "g";
"def"[2] = "g";
"ghi"[""] = "g";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/lhs_prop_2/output.mangleOnly.js | JavaScript | [
1
][0] = 42;
(function(n) {
n.b = "g";
})("abc");
(function(n) {
n[2] = "g";
})("def");
(function(n) {
n[""] = "g";
})("ghi");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/lhs_prop_2/output.terser.js | JavaScript | [1][0] = 42;
"abc".b = "g";
"def"[2] = "g";
"ghi"[""] = "g";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/literal_duplicate_key_side_effects/input.js | JavaScript | console.log({ a: "FAIL", a: console.log ? "PASS" : "FAIL" }.a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/literal_duplicate_key_side_effects/output.js | JavaScript | console.log(console.log ? "PASS" : "FAIL");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/literal_duplicate_key_side_effects/output.mangleOnly.js | JavaScript | console.log({
a: "FAIL",
a: console.log ? "PASS" : "FAIL"
}.a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/literal_duplicate_key_side_effects/output.terser.js | JavaScript | console.log(console.log ? "PASS" : "FAIL");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug/input.js | JavaScript | var a = {};
a.foo = "bar";
x = { baz: "ban" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug/output.js | JavaScript | var a = {};
a._$foo$_ = "bar";
x = { _$baz$_: "ban" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug/output.mangleOnly.js | JavaScript | var a = {};
a.foo = "bar";
x = {
baz: "ban"
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug/output.terser.js | JavaScript | var a = {};
a._$foo$_ = "bar";
x = { _$baz$_: "ban" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_suffix/input.js | JavaScript | var a = {};
a.foo = "bar";
x = { baz: "ban" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_suffix/output.js | JavaScript | var a = {};
a._$foo$XYZ_ = "bar";
x = { _$baz$XYZ_: "ban" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_suffix/output.mangleOnly.js | JavaScript | var a = {};
a.foo = "bar";
x = {
baz: "ban"
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_suffix/output.terser.js | JavaScript | var a = {};
a._$foo$XYZ_ = "bar";
x = { _$baz$XYZ_: "ban" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_suffix_keep_quoted/input.js | JavaScript | var a = {};
a.top = 1;
function f1() {
a["foo"] = "bar";
a.color = "red";
a.stuff = 2;
x = { bar: 10, size: 7 };
a.size = 9;
}
function f2() {
a.foo = "bar";
a["color"] = "red";
x = { bar: 10, size: 7 };
a.size = 9;
a.stuff = 3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_suffix_keep_quoted/output.js | JavaScript | var a = {};
a._$top$XYZ_ = 1;
function f1() {
a["foo"] = "bar";
a.color = "red";
a._$stuff$XYZ_ = 2;
x = { bar: 10, _$size$XYZ_: 7 };
a._$size$XYZ_ = 9;
}
function f2() {
a.foo = "bar";
a["color"] = "red";
x = { bar: 10, _$size$XYZ_: 7 };
a._$size$XYZ_ = 9;
a._$stuff$XYZ_ = 3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_suffix_keep_quoted/output.mangleOnly.js | JavaScript | var o = {};
o.top = 1;
function r() {
o["foo"] = "bar";
o.color = "red";
o.stuff = 2;
x = {
bar: 10,
size: 7
};
o.size = 9;
}
function f() {
o.foo = "bar";
o["color"] = "red";
x = {
bar: 10,
size: 7
};
o.size = 9;
o.stuff = 3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_suffix_keep_quoted/output.terser.js | JavaScript | var a = {};
a._$top$XYZ_ = 1;
function f1() {
a["foo"] = "bar";
a.color = "red";
a._$stuff$XYZ_ = 2;
x = { bar: 10, _$size$XYZ_: 7 };
a._$size$XYZ_ = 9;
}
function f2() {
a.foo = "bar";
a["color"] = "red";
x = { bar: 10, _$size$XYZ_: 7 };
a._$size$XYZ_ = 9;
a._$stuff$XYZ_ = 3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_true/input.js | JavaScript | var a = {};
a.foo = "bar";
x = { baz: "ban" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_true/output.js | JavaScript | var a = {};
a._$foo$_ = "bar";
x = { _$baz$_: "ban" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_true/output.mangleOnly.js | JavaScript | var a = {};
a.foo = "bar";
x = {
baz: "ban"
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_debug_true/output.terser.js | JavaScript | var a = {};
a._$foo$_ = "bar";
x = { _$baz$_: "ban" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_define_property_arg/input.js | JavaScript | var some_prop = "propname";
const object = {
some_prop,
};
const non_global_console = console;
// .log gets preserved because of jsprops
non_global_console.log(object);
Object.defineProperty(object, "some_prop", { value: 3 });
Object.defineProperty(non_global_console, "lag", { value: 3 });
Object.defineProperty(console, "lag", { value: 3 });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_define_property_arg/output.js | JavaScript | var some_prop = "propname";
const object = {
o: some_prop
};
const non_global_console = console;
non_global_console.log(object);
Object.defineProperty(object, "o", {
value: 3
});
Object.defineProperty(non_global_console, "e", {
value: 3
});
Object.defineProperty(console, "e", {
value: 3
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_define_property_arg/output.mangleOnly.js | JavaScript | var e = "propname";
const o = {
some_prop: e
};
const r = console;
r.log(o);
Object.defineProperty(o, "some_prop", {
value: 3
});
Object.defineProperty(r, "lag", {
value: 3
});
Object.defineProperty(console, "lag", {
value: 3
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_private_properties/input.js | JavaScript | class Foo {
#foo = 123;
#privMethod() {}
get #privProp() {}
set #privProp(a) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_private_properties/output.js | JavaScript | class o {
#o = 123;
#p() {}
get #r() {}
set #r(o) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_private_properties/output.mangleOnly.js | JavaScript | class o {
#o = 123;
#p() {}
get #r() {}
set #r(o) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_properties/input.js | JavaScript | a["foo"] = "bar";
a.color = "red";
x = { bar: 10 };
a.run(x.bar, a.foo);
a["run"]({ color: "blue", foo: "baz" });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_properties/output.js | JavaScript | a["foo"] = "bar";
a.color = "red";
x = { l: 10 };
a.run(x.l, a.o);
a["run"]({ color: "blue", o: "baz" });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_properties/output.mangleOnly.js | JavaScript | a["foo"] = "bar";
a.color = "red";
x = {
bar: 10
};
a.run(x.bar, a.foo);
a["run"]({
color: "blue",
foo: "baz"
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_properties/output.terser.js | JavaScript | a["o"] = "bar";
a.color = "red";
x = { l: 10 };
a.u(x.l, a.o);
a["u"]({ color: "blue", o: "baz" });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_properties_which_matches_pattern/input.js | JavaScript | var acd = {
get asd() {
return this._asd;
},
_asd: true,
};
console.log(acd);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_properties_which_matches_pattern/output.js | JavaScript | var acd = {
get asd() {
return this.a;
},
a: !0,
};
console.log(acd);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_properties_which_matches_pattern/output.mangleOnly.js | JavaScript | var s = {
get asd () {
return this._asd;
},
_asd: true
};
console.log(s);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_properties_which_matches_pattern/output.terser.js | JavaScript | var acd = {
get asd() {
return this.t;
},
t: !0,
};
console.log(acd);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_undeclared_properties/input.js | JavaScript | var Foo = {
foo: function () {
return Bar.bar();
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_undeclared_properties/output.js | JavaScript | var r = {
o: function () {
return a.t();
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_undeclared_properties/output.mangleOnly.js | JavaScript | var r = {
foo: function() {
return Bar.bar();
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_undeclared_properties/output.terser.js | JavaScript | var r = {
o: function () {
return a.t();
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_unquoted_properties/input.js | JavaScript | var a = {};
a.top = 1;
function f1() {
a["foo"] = "bar";
a.color = "red";
a.stuff = 2;
x = { bar: 10, size: 7 };
a.size = 9;
}
function f2() {
a.foo = "bar";
a["color"] = "red";
x = { bar: 10, size: 7 };
a.size = 9;
a.stuff = 3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_unquoted_properties/output.js | JavaScript | var a = {};
a.a = 1;
function f1() {
a["foo"] = "bar";
a.color = "red";
a.r = 2;
x = { bar: 10, b: 7 };
a.b = 9;
}
function f2() {
a.foo = "bar";
a["color"] = "red";
x = { bar: 10, b: 7 };
a.b = 9;
a.r = 3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_unquoted_properties/output.mangleOnly.js | JavaScript | var o = {};
o.top = 1;
function r() {
o["foo"] = "bar";
o.color = "red";
o.stuff = 2;
x = {
bar: 10,
size: 7
};
o.size = 9;
}
function f() {
o.foo = "bar";
o["color"] = "red";
x = {
bar: 10,
size: 7
};
o.size = 9;
o.stuff = 3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/mangle_unquoted_properties/output.terser.js | JavaScript | var a = {};
a.a = 1;
function f1() {
a["foo"] = "bar";
a.color = "red";
a.r = 2;
x = { bar: 10, b: 7 };
a.b = 9;
}
function f2() {
a.foo = "bar";
a["color"] = "red";
x = { bar: 10, b: 7 };
a.b = 9;
a.r = 3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/methods_keep_quoted_false/input.js | JavaScript | class C {
Quoted() {}
Unquoted() {}
}
f1({ Quoted() {}, Unquoted() {}, Prop: 3 });
f2({ Quoted: function () {} });
f3({ Quoted: () => {} });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/methods_keep_quoted_false/output.js | JavaScript | class C {
o() {}
t() {}
}
f1({ o() {}, t() {}, u: 3 });
f2({ o() {} });
f3({ o() {} });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/methods_keep_quoted_false/output.mangleOnly.js | JavaScript | class o {
Quoted() {}
Unquoted() {}
}
f1({
Quoted () {},
Unquoted () {},
Prop: 3
});
f2({
Quoted: function() {}
});
f3({
Quoted: ()=>{}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/methods_keep_quoted_false/output.terser.js | JavaScript | class C {
o() {}
t() {}
}
f1({ o() {}, t() {}, u: 3 });
f2({ o() {} });
f3({ o() {} });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/methods_keep_quoted_from_dead_code/input.js | JavaScript | class C {
Quoted() {}
Unquoted() {}
}
f1({ Quoted() {}, Unquoted() {}, Prop: 3 });
f2({ Quoted: function () {} });
f3({ Quoted: () => {} });
0 && obj["Quoted"];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/methods_keep_quoted_from_dead_code/output.js | JavaScript | class C {
Quoted() {}
o() {}
}
f1({ Quoted() {}, o() {}, Prop: 3 });
f2({ Quoted() {} });
f3({ Quoted() {} });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/methods_keep_quoted_from_dead_code/output.mangleOnly.js | JavaScript | class o {
Quoted() {}
Unquoted() {}
}
f1({
Quoted () {},
Unquoted () {},
Prop: 3
});
f2({
Quoted: function() {}
});
f3({
Quoted: ()=>{}
});
0 && obj["Quoted"];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/properties/methods_keep_quoted_from_dead_code/output.terser.js | JavaScript | class C {
Quoted() {}
o() {}
}
f1({ Quoted() {}, o() {}, Prop: 3 });
f2({ Quoted() {} });
f3({ Quoted() {} });
| 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.