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_node_bundler/tests/pass/export/issue-1111/simple/input/entry.js | JavaScript | import { d } from "./d";
console.log(d);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/issue-1111/simple/output/entry.js | JavaScript | const a = "a";
const d = {
a
};
console.log(d);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/mixed-all-and-const/input/a.js | JavaScript | export const a = 1;
export * from "./b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/mixed-all-and-const/input/b.js | JavaScript | export const b = 2;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/mixed-all-and-const/input/entry.js | JavaScript | export * from "./a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/mixed-all-and-const/output/entry.js | JavaScript | const b = 2;
export { b as b };
const a = 1;
export { a as a };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/helpers/simple/input/entry.js | JavaScript | @isDecorator
class Foo { }
new Foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/helpers/simple/output/entry.js | JavaScript | function _class_call_check(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _ts_decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
var Foo = function Foo() {
"use strict";
_class_call_check(this, Foo);
};
Foo = _ts_decorate([
isDecorator
], Foo);
new Foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import-with-export/simple-1/input/a.js | JavaScript | export const a = 1;
export const b = 2;
export const c = 3;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import-with-export/simple-1/input/entry.js | JavaScript | import { a } from "./a";
export * from "./a";
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import-with-export/simple-1/output/entry.js | JavaScript | const a = 1;
const b = 2;
const c = 3;
export { a as a };
export { b as b };
export { c as c };
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-default/input/a.js | JavaScript | import Common from "./c";
export default class A extends Common {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-default/input/b.js | JavaScript | import Common from "./c";
export default class B extends Common {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-default/input/c.js | JavaScript | export default class Common {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-default/input/entry.js | JavaScript | import A from "./a";
import B from "./b";
console.log(A, B);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-default/output/entry.js | JavaScript | class Common {
}
class A extends Common {
}
class B extends Common {
}
console.log(A, B);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-named/input/a.js | JavaScript | import { Common } from "./c";
export default class A extends Common {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-named/input/b.js | JavaScript | import { Common } from "./c";
export default class B extends Common {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-named/input/c.js | JavaScript | export class Common {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-named/input/entry.js | JavaScript | import A from "./a";
import B from "./b";
console.log(A, B);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/commons-named/output/entry.js | JavaScript | class Common {
}
class A extends Common {
}
class B extends Common {
}
console.log(A, B);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/computed-key/input/a.js | JavaScript | export const arr = [0, 1, 2, 3];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/computed-key/input/entry.js | JavaScript | import * as a from "./a";
console.log(a[foo()]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/computed-key/output/entry.js | JavaScript | const arr = [
0,
1,
2,
3
];
const mod = {
arr: arr
};
console.log(mod[foo()]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/default/named-class/input/a.js | JavaScript | export default class MyClass {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/default/named-class/input/entry.js | JavaScript | import A from "./a";
console.log(A);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/default/named-class/output/entry.js | JavaScript | class MyClass {
}
console.log(MyClass);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/default/unnamed-class/input/a.js | JavaScript | export default class {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/default/unnamed-class/input/entry.js | JavaScript | import A from "./a";
console.log(A);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/default/unnamed-class/output/entry.js | JavaScript | const __default = class {
};
console.log(__default);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/name-conflict/simple/input/a.js | JavaScript | const foo = 10;
export const bar = foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/name-conflict/simple/input/entry.js | JavaScript | import { bar } from "./a";
const foo = 5;
console.log(foo, bar);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/name-conflict/simple/output/entry.js | JavaScript | const foo = 10;
const bar = foo;
const foo1 = 5;
console.log(foo1, bar);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/namespace/name-conflict/in-entry/input/a.js | JavaScript | export function a() {}
export function foo() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/namespace/name-conflict/in-entry/input/entry.js | JavaScript | import * as a from "./a";
function foo() {}
console.log(foo(), a.a(), a.foo());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/namespace/name-conflict/in-entry/output/entry.js | JavaScript | function a() {}
function foo() {}
function foo1() {}
console.log(foo1(), a(), foo());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/namespace/simple/input/a.js | JavaScript | export function a() {}
export function foo() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/namespace/simple/input/entry.js | JavaScript | import * as a from "./a";
console.log(a.a(), a.foo());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/namespace/simple/output/entry.js | JavaScript | function a() {}
function foo() {}
console.log(a(), foo());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/resursive/input/a.js | JavaScript | import "./b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/resursive/input/b.js | JavaScript | import "./c";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/resursive/input/c.js | JavaScript | console.log("c is loaded");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/resursive/input/entry.js | JavaScript | import "./a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/resursive/output/entry.js | JavaScript | console.log("c is loaded");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/simple-alias/input/a.js | JavaScript | export const unnamed = 1;
export default unnamed;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/simple-alias/input/entry.js | JavaScript | import { default as a } from "./a";
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/simple-alias/output/entry.js | JavaScript | const unnamed = 1;
console.log(unnamed);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/simple-decl/input/a.js | JavaScript | export const a = 1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/simple-decl/input/entry.js | JavaScript | import { a } from "./a";
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/simple-decl/output/entry.js | JavaScript | const a = 1;
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/star-export/input/a.js | JavaScript | export class A {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/star-export/input/entry.js | JavaScript | import * as _a from "./a";
export { _a as a };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/star-export/output/entry.js | JavaScript | class A {
}
const mod = {
A: A
};
export { mod as a };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/star-use/input/a.js | JavaScript | export class A {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/star-use/input/entry.js | JavaScript | import * as a from "./a";
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/star-use/output/entry.js | JavaScript | class A {
}
const mod = {
A: A
};
console.log(mod);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.order/input/a.js | JavaScript | console.log("a");
export default 1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.order/input/entry.js | JavaScript | console.log("foo");
console.log(require("./a"));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.order/output/entry.js | JavaScript | console.log("foo");
console.log("a");
console.log(1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.seq-expr/input/a.js | JavaScript | console.log("a");
export default 1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.seq-expr/input/entry.js | JavaScript | console.log((require("./a"), "foo"));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.seq-expr/output/entry.js | JavaScript | console.log('a');
console.log('foo');
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.simple/input/a.js | JavaScript | console.log("l-a");
export default "a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.simple/input/b.js | JavaScript | console.log("l-b");
export default "b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.simple/input/entry.js | JavaScript | const a = require("./a"),
b = require("./b");
console.log(a);
console.log(b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/import/top-level-require/.simple/output/entry.js | JavaScript | console.log("l-a");
const a = "a";
console.log("l-b");
const b = "b";
console.log(a);
console.log(b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-1/input/a.ts | TypeScript | export const a = "a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-1/input/entry.js | JavaScript | import { a as defaultA } from "./l.ts";
const o: { a?: string } = {};
const { a = defaultA } = o;
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-1/input/l.ts | TypeScript | export { a } from "./a.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-1/output/entry.js | JavaScript | var a = "a";
var o = {};
var _o_a = o.a, a1 = _o_a === void 0 ? a : _o_a;
console.log(a1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-2/input/a.ts | TypeScript | export const defaultA = "a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-2/input/entry.js | JavaScript | import { defaultA } from "./l.ts";
const o: { a?: string } = {};
const { a = defaultA } = o;
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-2/input/l.ts | TypeScript | export { defaultA } from "./a.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-2/output/entry.js | JavaScript | var defaultA = "a";
var o = {};
var _o_a = o.a, a = _o_a === void 0 ? defaultA : _o_a;
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-3/input/a.ts | TypeScript | export const a = "a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-3/input/entry.js | JavaScript | import { a as defaultA } from "./l.ts";
const o: { a?: string } = {};
const { a = defaultA } = o;
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-3/input/l.ts | TypeScript | export { a } from "./a.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1138/example-3/output/entry.js | JavaScript | const a = "a";
const o = {};
const { a: a1 = a } = o;
console.log(a1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1139/example-1/input/a.js | JavaScript | import * as circular1 from "./entry";
export function f2() {
console.log("f2");
}
circular1.f1();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1139/example-1/input/entry.js | JavaScript | import * as circular2 from "./a";
export function f1() {
console.log("f1");
}
circular2.f2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1139/example-1/output/entry.js | JavaScript | function f1() {
console.log("f1");
}
function f2() {
console.log("f2");
}
f2();
f1();
export { f1 as f1 };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1139/example-2/input/a.js | JavaScript | import * as circular2 from "./b";
export function f1() {
console.log("f1");
}
circular2.f2();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1139/example-2/input/b.js | JavaScript | import * as circular1 from "./a";
export function f2() {
console.log("f2");
}
circular1.f1();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1139/example-2/input/entry.js | JavaScript | import "./a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1139/example-2/output/entry.js | JavaScript | function f1() {
console.log("f1");
}
function f2() {
console.log("f2");
}
f2();
f1();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1225/cjs/input/entry.js | JavaScript | const mod = require("./mod.json");
console.log(mod);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1225/cjs/output/entry.js | JavaScript | function __swcpack_require__(mod) {
function interop(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for(var key in obj){
if (Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};
if (desc.get || desc.set) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
}
newObj.default = obj;
return newObj;
}
}
var cache;
if (cache) {
return cache;
}
var module = {
exports: {}
};
mod(module, module.exports);
cache = interop(module.exports);
return cache;
}
var load = __swcpack_require__.bind(void 0, function(module, exports) {
module.exports = {
"version": "1.2.47"
};
});
const mod = load();
console.log(mod);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1225/esm/input/entry.js | JavaScript | import * as mod from "./mod.json";
console.log(mod);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1225/esm/output/entry.js | JavaScript | function __swcpack_require__(mod) {
function interop(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for(var key in obj){
if (Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};
if (desc.get || desc.set) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
}
newObj.default = obj;
return newObj;
}
}
var cache;
if (cache) {
return cache;
}
var module = {
exports: {}
};
mod(module, module.exports);
cache = interop(module.exports);
return cache;
}
var load = __swcpack_require__.bind(void 0, function(module, exports) {
module.exports = {
"version": "1.2.47"
};
});
var mod = load();
console.log(mod);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1328/case1/input/entry.js | JavaScript | async function foo() {}
foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1328/case1/output/entry.js | JavaScript | function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _async_to_generator(fn) {
return function() {
var self = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);
});
};
}
function _ts_generator(thisArg, body) {
var f, y, t, g, _ = {
label: 0,
sent: function() {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: []
};
return g = {
next: verb(0),
"throw": verb(1),
"return": verb(2)
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
return this;
}), g;
function verb(n) {
return function(v) {
return step([
n,
v
]);
};
}
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while(_)try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [
op[0] & 2,
t.value
];
switch(op[0]){
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return {
value: op[1],
done: false
};
case 5:
_.label++;
y = op[1];
op = [
0
];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2]) _.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [
6,
e
];
y = 0;
} finally{
f = t = 0;
}
if (op[0] & 5) throw op[1];
return {
value: op[0] ? op[1] : void 0,
done: true
};
}
}
function foo() {
return _foo.apply(this, arguments);
}
function _foo() {
_foo = _async_to_generator(function() {
return _ts_generator(this, function(_state) {
return [
2
];
});
});
return _foo.apply(this, arguments);
}
foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1338/export-all-alias/input/entry.js | JavaScript | export * as path from "path";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1338/export-all-alias/output/entry.js | JavaScript | import * as _path from "path";
export { _path as path };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1338/export-all/input/entry.js | JavaScript | export * from "path";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1338/export-all/output/entry.js | JavaScript | export * from "path";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1338/import-all/input/entry.js | JavaScript | import * as path from "path";
console.log(path, path.join(__dirname));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1338/import-all/output/entry.js | JavaScript | import * as path from "path";
console.log(path, path.join(__dirname));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1338/import-specific/input/entry.js | JavaScript | import { join } from "path";
console.log(join("a", "b", "c"));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1338/import-specific/output/entry.js | JavaScript | import { join } from "path";
console.log(join("a", "b", "c"));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/issue-1533/case1/input/entry.js | JavaScript | var this_will_disappear; // <-- this variable declaration disappears
function a(x) {
switch (this_will_disappear) {
case x:
return;
}
}
function b() {
c();
}
function c() {
b();
d();
}
function d() {
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.