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/switch/issue_1083_2/output.js | JavaScript | function test(definitely_true, maybe_true) {
switch (true) {
case definitely_true:
default:
console.log("PASS");
break;
case maybe_true:
console.log("FAIL");
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_2/output.mangleOnly.js | JavaScript | function e(e, o) {
switch(true){
case e:
default:
console.log("PASS");
break;
case o:
console.log("FAIL");
break;
}
}
e(true, false);
e(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_2/output.terser.js | JavaScript | function test(definitely_true, maybe_true) {
switch (true) {
case definitely_true:
default:
console.log("PASS");
break;
case maybe_true:
console.log("FAIL");
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_3/input.js | JavaScript | function test(definitely_true, maybe_true) {
switch (true) {
case maybe_true:
console.log("maybe");
break;
default:
case definitely_true:
console.log("definitely");
break;
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_3/output.js | JavaScript | function test(definitely_true, maybe_true) {
if (true === maybe_true) console.log("maybe");
else console.log("definitely");
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_3/output.mangleOnly.js | JavaScript | function e(e, t) {
switch(true){
case t:
console.log("maybe");
break;
default:
case e:
console.log("definitely");
break;
}
}
e(true, false);
e(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_3/output.terser.js | JavaScript | function test(definitely_true, maybe_true) {
if (true === maybe_true) console.log("maybe");
else console.log("definitely");
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_4/input.js | JavaScript | function test(definitely_true, maybe_true) {
switch (true) {
case maybe_true:
console.log("maybe");
break;
case definitely_true:
default:
console.log("definitely");
break;
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_4/output.js | JavaScript | function test(definitely_true, maybe_true) {
if (true === maybe_true) console.log("maybe");
else console.log("definitely");
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_4/output.mangleOnly.js | JavaScript | function e(e, t) {
switch(true){
case t:
console.log("maybe");
break;
case e:
default:
console.log("definitely");
break;
}
}
e(true, false);
e(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_4/output.terser.js | JavaScript | function test(definitely_true, maybe_true) {
if (true === maybe_true) console.log("maybe");
else console.log("definitely");
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_5/input.js | JavaScript | function test(definitely_true, maybe_true) {
switch (true) {
default:
console.log("definitely");
break;
case maybe_true:
console.log("maybe");
break;
case definitely_true:
console.log("definitely");
break;
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_5/output.js | JavaScript | function test(definitely_true, maybe_true) {
switch(true){
default:
console.log("definitely");
break;
case maybe_true:
console.log("maybe");
break;
case definitely_true:
console.log("definitely");
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_5/output.mangleOnly.js | JavaScript | function e(e, l) {
switch(true){
default:
console.log("definitely");
break;
case l:
console.log("maybe");
break;
case e:
console.log("definitely");
break;
}
}
e(true, false);
e(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_5/output.terser.js | JavaScript | function test(definitely_true, maybe_true) {
switch (true) {
default:
console.log("definitely");
break;
case maybe_true:
console.log("maybe");
break;
case definitely_true:
console.log("definitely");
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_6/input.js | JavaScript | function test(definitely_true, maybe_true) {
switch (true) {
case definitely_true:
console.log("definitely");
break;
case maybe_true:
console.log("maybe");
break;
default:
console.log("definitely");
break;
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_6/output.js | JavaScript | function test(definitely_true, maybe_true) {
switch(true){
case definitely_true:
console.log("definitely");
break;
case maybe_true:
console.log("maybe");
break;
default:
console.log("definitely");
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_6/output.mangleOnly.js | JavaScript | function e(e, l) {
switch(true){
case e:
console.log("definitely");
break;
case l:
console.log("maybe");
break;
default:
console.log("definitely");
break;
}
}
e(true, false);
e(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1083_6/output.terser.js | JavaScript | function test(definitely_true, maybe_true) {
switch (true) {
case definitely_true:
console.log("definitely");
break;
case maybe_true:
console.log("maybe");
break;
default:
console.log("definitely");
}
}
test(true, false);
test(true, true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1663/input.js | JavaScript | var a = 100,
b = 10;
function f() {
switch (1) {
case 1:
b = a++;
return ++b;
default:
var b;
}
}
f();
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1663/output.js | JavaScript | var a = 100, b = 10;
function f() {
var b;
b = a++;
return ++b;
}
f();
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1663/output.mangleOnly.js | JavaScript | var a = 100, c = 10;
function e() {
switch(1){
case 1:
c = a++;
return ++c;
default:
var c;
}
}
e();
console.log(a, c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1663/output.terser.js | JavaScript | var a = 100,
b = 10;
function f() {
var b;
b = a++;
return ++b;
}
f();
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1674/input.js | JavaScript | switch (0) {
default:
console.log("FAIL");
break;
case 0:
console.log("PASS");
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1674/output.js | JavaScript | console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1674/output.mangleOnly.js | JavaScript | switch(0){
default:
console.log("FAIL");
break;
case 0:
console.log("PASS");
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1674/output.terser.js | JavaScript | console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1679/input.js | JavaScript | var a = 100,
b = 10;
function f() {
switch (--b) {
default:
case !function x() {}:
break;
case b--:
switch (0) {
default:
case a--:
}
break;
case a++:
break;
}
}
f();
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1679/output.js | JavaScript | var a = 100, b = 10;
function f() {
switch(--b){
default:
case false:
break;
case b--:
a--;
case a++:
}
}
f();
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1679/output.mangleOnly.js | JavaScript | var a = 100, e = 10;
function c() {
switch(--e){
default:
case !function a() {}:
break;
case e--:
switch(0){
default:
case a--:
}
break;
case a++:
break;
}
}
c();
console.log(a, e);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1679/output.terser.js | JavaScript | var a = 100,
b = 10;
function f() {
switch (--b) {
default:
case !function x() {}:
break;
case b--:
a--;
case a++:
}
}
f();
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1680_1/input.js | JavaScript | function f(x) {
console.log(x);
return x + 1;
}
switch (2) {
case f(0):
case f(1):
f(2);
case 2:
case f(3):
case f(4):
f(5);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1680_1/output.js | JavaScript | function f(x) {
console.log(x);
return x + 1;
}
switch(2){
case f(0):
case f(1):
f(2);
case 2:
f(5);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1680_1/output.mangleOnly.js | JavaScript | function c(c) {
console.log(c);
return c + 1;
}
switch(2){
case c(0):
case c(1):
c(2);
case 2:
case c(3):
case c(4):
c(5);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1680_1/output.terser.js | JavaScript | function f(x) {
console.log(x);
return x + 1;
}
switch (2) {
case f(0):
case f(1):
f(2);
case 2:
f(5);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1680_2/input.js | JavaScript | var a = 100,
b = 10;
switch (b) {
case a--:
break;
case b:
var c;
break;
case a:
break;
case a--:
break;
}
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1680_2/output.js | JavaScript | var a = 100, b = 10;
switch(b){
case a--:
break;
case b:
var c;
case a:
case a--:
}
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1680_2/output.mangleOnly.js | JavaScript | var a = 100, e = 10;
switch(e){
case a--:
break;
case e:
var c;
break;
case a:
break;
case a--:
break;
}
console.log(a, e);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1680_2/output.terser.js | JavaScript | var a = 100,
b = 10;
switch (b) {
case a--:
case b:
var c;
case a:
case a--:
}
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1690_1/input.js | JavaScript | switch (console.log("PASS")) {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1690_1/output.js | JavaScript | console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1690_1/output.mangleOnly.js | JavaScript | switch(console.log("PASS")){
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1690_1/output.terser.js | JavaScript | console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1690_2/input.js | JavaScript | switch (console.log("PASS")) {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1690_2/output.js | JavaScript | switch(console.log("PASS")){
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1690_2/output.mangleOnly.js | JavaScript | switch(console.log("PASS")){
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1690_2/output.terser.js | JavaScript | switch (console.log("PASS")) {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1698/input.js | JavaScript | var a = 1;
!(function () {
switch (a++) {
}
})();
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1698/output.js | JavaScript | var a = 1;
!function() {
switch(a++){
}
}();
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1698/output.mangleOnly.js | JavaScript | var o = 1;
!(function() {
switch(o++){
}
})();
console.log(o);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1698/output.terser.js | JavaScript | var a = 1;
!(function () {
switch (a++) {
}
})();
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_1/input.js | JavaScript | var a = 0;
switch (a) {
default:
console.log("FAIL");
case 0:
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_1/output.js | JavaScript | var a = 0;
if (0 !== a) console.log("FAIL");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_1/output.mangleOnly.js | JavaScript | var a = 0;
switch(a){
default:
console.log("FAIL");
case 0:
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_1/output.terser.js | JavaScript | var a = 0;
if (0 !== a) console.log("FAIL");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_2/input.js | JavaScript | var a = 0;
switch (a) {
default:
console.log("FAIL");
case 0:
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_2/output.mangleOnly.js | JavaScript | var a = 0;
switch(a){
default:
console.log("FAIL");
case 0:
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_3/input.js | JavaScript | switch (a) {
case 0:
break;
default:
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_3/output.js | JavaScript | a;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_3/output.mangleOnly.js | JavaScript | switch(a){
case 0:
break;
default:
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1705_3/output.terser.js | JavaScript | a;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1750/input.js | JavaScript | var a = 0,
b = 1;
switch (true) {
case (a, true):
default:
b = 2;
case true:
}
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1750/output.js | JavaScript | var a = 0, b = 1;
b = 2;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1750/output.mangleOnly.js | JavaScript | var e = 0, t = 1;
switch(true){
case (e, true):
default:
t = 2;
case true:
}
console.log(e, t);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1750/output.terser.js | JavaScript | var a = 0,
b = 1;
true;
a, true;
b = 2;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1758/input.js | JavaScript | var a = 1,
b = 2;
switch (a--) {
default:
b++;
}
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1758/output.js | JavaScript | var a = 1,
b = 2;
a--;
b++;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1758/output.mangleOnly.js | JavaScript | var l = 1, o = 2;
switch(l--){
default:
o++;
}
console.log(l, o);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_1758/output.terser.js | JavaScript | var a = 1,
b = 2;
a--;
b++;
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_2535/input.js | JavaScript | switch ((w(), 42)) {
case 13:
x();
case 42:
y();
default:
z();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_2535/output.js | JavaScript | w();
y();
z();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_2535/output.mangleOnly.js | JavaScript | switch((w(), 42)){
case 13:
x();
case 42:
y();
default:
z();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_2535/output.terser.js | JavaScript | w(), 42;
42;
y();
z();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_376/input.js | JavaScript | switch (true) {
case boolCondition:
console.log(1);
break;
case false:
console.log(2);
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_376/output.js | JavaScript | if (true === boolCondition) console.log(1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_376/output.mangleOnly.js | JavaScript | switch(true){
case boolCondition:
console.log(1);
break;
case false:
console.log(2);
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_376/output.terser.js | JavaScript | if (true === boolCondition) console.log(1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_441_1/input.js | JavaScript | switch (foo) {
case bar:
qux();
break;
case baz:
qux();
break;
default:
qux();
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_441_1/output.js | JavaScript | foo, bar, baz;
qux();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_441_1/output.mangleOnly.js | JavaScript | switch(foo){
case bar:
qux();
break;
case baz:
qux();
break;
default:
qux();
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_441_1/output.terser.js | JavaScript | switch (foo) {
case bar:
case baz:
}
qux();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_441_2/input.js | JavaScript | switch (foo) {
case bar:
qux();
break;
case fall:
case baz:
qux();
break;
default:
qux();
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_441_2/output.js | JavaScript | foo, bar, fall, baz;
qux();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_441_2/output.mangleOnly.js | JavaScript | switch(foo){
case bar:
qux();
break;
case fall:
case baz:
qux();
break;
default:
qux();
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_441_2/output.terser.js | JavaScript | switch (foo) {
case bar:
case fall:
case baz:
}
qux();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_445/input.js | JavaScript | const leak = () => {};
function scan() {
let len = leak();
let ch = 0;
switch ((ch = 123)) {
case "never-reached":
const ch = leak();
leak(ch);
}
return len === 123 ? "FAIL" : "PASS";
}
console.log(scan());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/issue_445/output.mangleOnly.js | JavaScript | const e = ()=>{};
function c() {
let c = e();
let n = 0;
switch((n = 123)){
case "never-reached":
const t = e();
e(t);
}
return c === 123 ? "FAIL" : "PASS";
}
console.log(c());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/keep_case/input.js | JavaScript | switch (foo) {
case "bar":
baz();
break;
case moo:
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/keep_case/output.js | JavaScript | switch (foo) {
case "bar":
baz();
case moo:
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/keep_case/output.mangleOnly.js | JavaScript | switch(foo){
case "bar":
baz();
break;
case moo:
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/keep_case/output.terser.js | JavaScript | switch (foo) {
case "bar":
baz();
case moo:
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/keep_default/input.js | JavaScript | switch (foo) {
case "bar":
baz();
default:
something();
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/keep_default/output.js | JavaScript | if ("bar" === foo) baz();
something();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/keep_default/output.mangleOnly.js | JavaScript | switch(foo){
case "bar":
baz();
default:
something();
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/keep_default/output.terser.js | JavaScript | if ("bar" === foo) baz();
something();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/turn_into_if/input.js | JavaScript | switch (id(1)) {
case id(2):
console.log("FAIL");
}
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/turn_into_if/output.js | JavaScript | if (id(1) === id(2)) console.log("FAIL");
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/turn_into_if/output.mangleOnly.js | JavaScript | switch(id(1)){
case id(2):
console.log("FAIL");
}
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/turn_into_if/output.terser.js | JavaScript | if (id(1) === id(2)) console.log("FAIL");
console.log("PASS");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/switch/turn_into_if_2/input.js | JavaScript | switch (id(1)) {
case id(2):
console.log("FAIL");
default:
console.log("PASS");
}
| 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.