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/async/await_precedence/output.js | JavaScript | async function f1() {
(await x) + y;
}
async function f2() {
await (x + y);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence/output.mangleOnly.js | JavaScript | async function a() {
(await x) + y;
}
async function n() {
await (x + y);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence/output.terser.js | JavaScript | async function f1() {
(await x) + y;
}
async function f2() {
await (x + y);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence_call/input.js | JavaScript | async function f3() {
return (await foo())();
}
async function f4() {
return await foo()();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence_call/output.js | JavaScript | async function f3() {
return (await foo())();
}
async function f4() {
return await foo()();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence_call/output.mangleOnly.js | JavaScript | async function n() {
return (await foo())();
}
async function a() {
return await foo()();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence_call/output.terser.js | JavaScript | async function f3() {
return (await foo())();
}
async function f4() {
return await foo()();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence_prop/input.js | JavaScript | async function f1() {
return (await foo()).bar;
}
async function f2() {
return await foo().bar;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence_prop/output.js | JavaScript | async function f1() {
return (await foo()).bar;
}
async function f2() {
return await foo().bar;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence_prop/output.mangleOnly.js | JavaScript | async function a() {
return (await foo()).bar;
}
async function n() {
return await foo().bar;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/await_precedence_prop/output.terser.js | JavaScript | async function f1() {
return (await foo()).bar;
}
async function f2() {
return await foo().bar;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/for_await_of/input.js | JavaScript | async function f(x) {
for await (a of x) {
}
for await (var b of x) {
}
for await (let c of x) {
}
for await (const d of x) {
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/for_await_of/output.js | JavaScript | async function f(x) {
for await (a of x);
for await (var b of x);
for await (let c of x);
for await (const d of x);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/for_await_of/output.mangleOnly.js | JavaScript | async function o(o) {
for await (a of o){}
for await (var f of o){}
for await (let f of o){}
for await (const f of o){}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/for_await_of/output.terser.js | JavaScript | async function f(x) {
for await (a of x);
for await (var b of x);
for await (let c of x);
for await (const d of x);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/for_await_of_2/input.js | JavaScript | async function foo(x) {
for await (a of x) {
}
for await (var b of x) {
}
for await (let c of x) {
}
for await (const d of x) {
}
}
const bar = async (x) => {
for await (a of x) {
}
for await (var b of x) {
}
for await (let c of x) {
}
for await (const d of x) {
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/for_await_of_2/output.js | JavaScript | async function foo(x) {
for await (a of x);
for await (var b of x);
for await (let c of x);
for await (const d of x);
}
const bar = async (x) => {
for await (a of x);
for await (var b of x);
for await (let c of x);
for await (const d of x);
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/for_await_of_2/output.mangleOnly.js | JavaScript | async function a(a) {
for await (a of a){}
for await (var o of a){}
for await (let o of a){}
for await (const o of a){}
}
const o = async (a)=>{
for await (a of a){}
for await (var o of a){}
for await (let o of a){}
for await (const o of a){}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/for_await_of_2/output.terser.js | JavaScript | async function foo(x) {
for await (a of x);
for await (var b of x);
for await (let c of x);
for await (const d of x);
}
const bar = async (x) => {
for await (a of x);
for await (var b of x);
for await (let c of x);
for await (const d of x);
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_2344_1/input.js | JavaScript | async () => {
+(await x);
await y;
return await z;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_2344_1/output.js | JavaScript | async () => {
+(await x);
await y;
return await z;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_2344_1/output.mangleOnly.js | JavaScript | async ()=>{
+(await x);
await y;
return await z;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_2344_1/output.terser.js | JavaScript | async () => {
+(await x);
await y;
return await z;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_2344_2/input.js | JavaScript | async () => {
+(await x);
await y;
return await z;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_2344_2/output.js | JavaScript | async () => {
+(await x);
await y;
return await z;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_2344_2/output.mangleOnly.js | JavaScript | async ()=>{
+(await x);
await y;
return await z;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_2344_2/output.terser.js | JavaScript | async () => {
+(await x);
await y;
return await z;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_3079/input.js | JavaScript | (async) => 1;
var async = (async) => async;
console.log(async(1));
async = (async) => async;
console.log(async(2));
console.log({ m: (async) => (async ? "3" : "4") }.m(true));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_3079/output.js | JavaScript | (async)=>1;
var async = (async)=>async;
console.log(async(1));
async = (async)=>async;
console.log(async(2));
console.log(({
m: (async)=>async ? "3" : "4"
}).m(true));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_3079/output.mangleOnly.js | JavaScript | (o)=>1;
var o = (o)=>o;
console.log(o(1));
o = (o)=>o;
console.log(o(2));
console.log({
m: (o)=>(o ? "3" : "4")
}.m(true));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_3079/output.terser.js | JavaScript | (async) => 1;
var async = (async) => async;
console.log(async(1));
async = (async) => async;
console.log(async(2));
console.log({ m: (async) => (async ? "3" : "4") }.m(true));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_3079_2/input.js | JavaScript | async (async) => async;
async (async) => async;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_3079_2/output.js | JavaScript | async (async) => async;
async (async) => async;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_3079_2/output.mangleOnly.js | JavaScript | async (a)=>a;
async (a)=>a;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_3079_2/output.terser.js | JavaScript | async (async) => async;
async (async) => async;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_87/input.js | JavaScript | function async(async) {
console.log(async[0], async.prop);
}
async({ 0: 1, prop: 2 });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/async/issue_87/output.mangleOnly.js | JavaScript | function o(o) {
console.log(o[0], o.prop);
}
o({
0: 1,
prop: 2
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_binary/input.js | JavaScript | 0b101n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_binary/output.js | JavaScript | 0b101n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_binary/output.mangleOnly.js | JavaScript | 0b101n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_binary/output.terser.js | JavaScript | 0b101n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_hex/input.js | JavaScript | 0x20n;
0xfabn;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_hex/output.js | JavaScript | 0x20n;
0xfabn;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_hex/output.mangleOnly.js | JavaScript | 0x20n;
0xfabn;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_hex/output.terser.js | JavaScript | 0x20n;
0xfabn;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_math/input.js | JavaScript | const sum = 10n + 15n;
const exp = 5n ** 10n;
const sub = 1n - 3n;
const mul = 5n * 5n;
const div = 15n / 5n;
const regular_number = 1 * 10;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_math/output.js | JavaScript | const sum = 10n + 15n,
exp = 5n ** 10n,
sub = 1n - 3n,
mul = 5n * 5n,
div = 15n / 5n,
regular_number = 10;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_math/output.mangleOnly.js | JavaScript | const n = 10n + 15n;
const c = 5n ** 10n;
const o = 1n - 3n;
const s = 5n * 5n;
const t = 15n / 5n;
const a = 1 * 10;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_math/output.terser.js | JavaScript | const sum = 10n + 15n,
exp = 5n ** 10n,
sub = 1n - 3n,
mul = 5n * 5n,
div = 15n / 5n,
regular_number = 10;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_negative/input.js | JavaScript | -15n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_negative/output.js | JavaScript | -15n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_negative/output.mangleOnly.js | JavaScript | -15n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_negative/output.terser.js | JavaScript | -15n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_octal/input.js | JavaScript | 0o7n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_octal/output.js | JavaScript | 0o7n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_octal/output.mangleOnly.js | JavaScript | 0o7n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_octal/output.terser.js | JavaScript | 0o7n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_positive/input.js | JavaScript | 1000n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_positive/output.js | JavaScript | 1000n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_positive/output.mangleOnly.js | JavaScript | 1000n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/big_int_positive/output.terser.js | JavaScript | 1000n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/regression_big_int_hex_lower_with_e/input.js | JavaScript | 0xaefen;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/regression_big_int_hex_lower_with_e/output.js | JavaScript | 0xaefen;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/regression_big_int_hex_lower_with_e/output.mangleOnly.js | JavaScript | 0xaefen;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/big_int/regression_big_int_hex_lower_with_e/output.terser.js | JavaScript | 0xaefen;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/do_not_hoist_let/input.js | JavaScript | function x() {
if (FOO) {
let let1;
let let2;
var var1;
var var2;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/do_not_hoist_let/output.js | JavaScript | function x() {
if (FOO) {
var var1, var2;
let let1;
let let2;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/do_not_hoist_let/output.mangleOnly.js | JavaScript | function t() {
if (FOO) {
let e;
let f;
var t;
var a;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/do_not_hoist_let/output.terser.js | JavaScript | function x() {
var var1, var2;
if (FOO) {
let let1;
let let2;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/do_not_remove_anon_blocks_if_they_have_decls/input.js | JavaScript | function x() {
{
let x;
}
{
var x;
}
{
const y = 1;
class Zee {}
}
}
{
let y;
}
{
var y;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/do_not_remove_anon_blocks_if_they_have_decls/output.js | JavaScript | function x() {
{
let x;
}
var x;
{
const y = 1;
class Zee {}
}
}
{
let y;
}
var y;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/do_not_remove_anon_blocks_if_they_have_decls/output.mangleOnly.js | JavaScript | function t() {
{
let t;
}
{
var t;
}
{
const t = 1;
class a {
}
}
}
{
let t;
}{
var a;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/do_not_remove_anon_blocks_if_they_have_decls/output.terser.js | JavaScript | function x() {
{
let x;
}
var x;
{
const y = 1;
class Zee {}
}
}
{
let y;
}
var y;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/drop_undefined_vardef/input.js | JavaScript | let x = undefined;
const y = undefined;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/drop_undefined_vardef/output.js | JavaScript | let x;
const y = void 0;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/drop_undefined_vardef/output.mangleOnly.js | JavaScript | let e = undefined;
const n = undefined;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/drop_undefined_vardef/output.terser.js | JavaScript | let x;
const y = void 0;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/issue_241/input.js | JavaScript | var a = {};
(function (global) {
function fail(o) {
var result = {};
function inner() {
return outer({ one: o.one, two: o.two });
}
result.inner = function () {
return inner();
};
return result;
}
function outer(o) {
var ret;
if (o) {
ret = o.one;
} else {
ret = o.two;
}
return ret;
}
global.fail = fail;
})(a);
var b = a.fail({ one: "PASS" });
console.log(b.inner());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/issue_241/output.mangleOnly.js | JavaScript | var n = {};
(function(n) {
function o(n) {
var o = {};
function e() {
return r({
one: n.one,
two: n.two
});
}
o.inner = function() {
return e();
};
return o;
}
function r(n) {
var o;
if (n) {
o = n.one;
} else {
o = n.two;
}
return o;
}
n.fail = o;
})(n);
var o = n.fail({
one: "PASS"
});
console.log(o.inner());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/issue_334/input.js | JavaScript | (function (A) {
(function () {
doPrint();
})();
function doPrint() {
print(A);
}
})("Hello World!");
function print(A) {
if (!A.x) {
console.log(A);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/issue_334/output.js | JavaScript | var A;
(A = "Hello World!").x || console.log(A);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/issue_334/output.mangleOnly.js | JavaScript | (function(o) {
(function() {
c();
})();
function c() {
n(o);
}
})("Hello World!");
function n(n) {
if (!n.x) {
console.log(n);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/issue_334/output.terser.js | JavaScript | (function (A) {
A.x || console.log(A);
})("Hello World!");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/issue_508/input.js | JavaScript | const foo = () => {
let a;
{
let b = [];
{
console.log();
}
a = b;
{
let c = a;
let b = 123456;
console.log(b);
c.push(b);
}
}
};
foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/issue_508/output.mangleOnly.js | JavaScript | const l = ()=>{
let l;
{
let o = [];
{
console.log();
}
l = o;
{
let o = l;
let e = 123456;
console.log(e);
o.push(e);
}
}
};
l();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/let_statement/input.js | JavaScript | let x = 6;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/let_statement/output.js | JavaScript | let x = 6;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/let_statement/output.mangleOnly.js | JavaScript | let e = 6;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/let_statement/output.terser.js | JavaScript | let x = 6;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/regression_block_scope_resolves/input.js | JavaScript | (function () {
if (1) {
let x;
const y = 1;
class Zee {}
}
if (1) {
let ex;
const why = 2;
class Zi {}
}
console.log(
typeof x,
typeof y,
typeof Zee,
typeof ex,
typeof why,
typeof Zi
);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/regression_block_scope_resolves/output.js | JavaScript | (function () {
if (1) {
let e;
const o = 1;
class t {}
}
if (1) {
let e;
const o = 2;
class t {}
}
console.log(
typeof x,
typeof y,
typeof Zee,
typeof ex,
typeof why,
typeof Zi
);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/regression_block_scope_resolves/output.mangleOnly.js | JavaScript | (function() {
if (1) {
let e;
const o = 1;
class t {
}
}
if (1) {
let e;
const o = 2;
class t {
}
}
console.log(typeof x, typeof y, typeof Zee, typeof ex, typeof why, typeof Zi);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/regression_block_scope_resolves/output.terser.js | JavaScript | (function () {
if (1) {
let e;
const o = 1;
class t {}
}
if (1) {
let e;
const o = 2;
class t {}
}
console.log(
typeof x,
typeof y,
typeof Zee,
typeof ex,
typeof why,
typeof Zi
);
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/remove_unused_in_global_block/input.js | JavaScript | {
let x;
const y = 1;
class Zee {}
var w;
}
let ex;
const why = 2;
class Zed {}
var wut;
console.log(x, y, Zee);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/remove_unused_in_global_block/output.js | JavaScript | var w;
let ex;
const why = 2;
class Zed {}
var wut;
console.log(x, y, Zee);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/remove_unused_in_global_block/output.mangleOnly.js | JavaScript | {
let l;
const c = 1;
class e {
}
var s;
}let l;
const c = 2;
class e {
}
var o;
console.log(x, y, Zee);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/remove_unused_in_global_block/output.terser.js | JavaScript | var w;
let ex;
const why = 2;
class Zed {}
var wut;
console.log(x, y, Zee);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/switch_block_scope_mangler/input.js | JavaScript | var fn = function (code) {
switch (code) {
case 1:
let apple = code + 1;
let dog = code + 4;
console.log(apple, dog);
break;
case 2:
let banana = code + 2;
console.log(banana);
break;
default:
let cat = code + 3;
console.log(cat);
}
};
fn(1);
fn(2);
fn(3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/terser/compress/block_scope/switch_block_scope_mangler/output.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/block_scope/switch_block_scope_mangler/output.mangleOnly.js | JavaScript | var e = function(e) {
switch(e){
case 1:
let l = e + 1;
let o = e + 4;
console.log(l, o);
break;
case 2:
let c = e + 2;
console.log(c);
break;
default:
let t = e + 3;
console.log(t);
}
};
e(1);
e(2);
e(3);
| 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.