repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2523/module.js | test/cases/parsing/issue-2523/module.js | export default class A {}
export class B {}
export const c = 'c'; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-3116/file2.js | test/cases/parsing/issue-3116/file2.js | export default "default";
export var abc = "abc";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-3116/index.js | test/cases/parsing/issue-3116/index.js | import * as file from "./file";
import * as file2 from "./file2";
it("should translate indexed access to harmony import correctly", function() {
expect(file["default"]).toBe("default");
expect(file["abc"]).toBe("abc");
});
it("should translate dynamic indexed access to harmony import correctly", function() {
var f... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-3116/file.js | test/cases/parsing/issue-3116/file.js | export default "default";
export var abc = "abc";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/var-hiding/index.js | test/cases/parsing/var-hiding/index.js | var fn = function(module) {
if (typeof module !== 'number') {
throw new Error("module should be a number");
}
expect((typeof module)).toBe("number");
};
it("should hide a free var by function argument", function() {
fn(1);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-758/index.js | test/cases/parsing/issue-758/index.js | it("should require existing module with supplied error callback", function(done) {
require.ensure(['./file'], function(){
try {
var file = require('./file');
expect(file).toBe("file");
done();
} catch(e) { done(e); }
}, function(error) {});
});
it("should call error callback on missing module", function... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-758/throwing.js | test/cases/parsing/issue-758/throwing.js | define(function() {
throw new Error('message');
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-758/file.js | test/cases/parsing/issue-758/file.js | define(function() {
return "file";
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-758/errors.js | test/cases/parsing/issue-758/errors.js | "use strict";
module.exports = [[/Module not found/, /Can't resolve '\.\/missingModule' /]];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-injecting-order/index.js | test/cases/parsing/harmony-injecting-order/index.js | it("should inject variables before exporting", function() {
expect(require("./file").f()).toEqual({});
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-injecting-order/file.js | test/cases/parsing/harmony-injecting-order/file.js | export function f() {
return __webpack_amd_options__;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/block-scopes/index.js | test/cases/parsing/block-scopes/index.js | import ok from "./module";
// This should not leak an "ok" declaration into this scope
export default (function ok() {});
it("should allow block scopes", () => {
expect(ok).toBe("ok");
if (true) {
const ok = "no";
expect(ok).toBe("no");
}
expect(ok).toBe("ok");
{
let ok = "no";
expect(ok).toBe("no");
}
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/block-scopes/module.js | test/cases/parsing/block-scopes/module.js | export default "ok";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/es2022/in.js | test/cases/parsing/es2022/in.js | export default class C {
#x;
constructor(x) {
this.#x = x;
}
static getX(obj) {
if (#x in obj) return obj.#x;
return "obj must be an instance of C";
}
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/es2022/reexport.js | test/cases/parsing/es2022/reexport.js | export { add as "\0 add", "test name" as "string name" } from "./counter";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/es2022/test.filter.js | test/cases/parsing/es2022/test.filter.js | "use strict";
module.exports = function (config) {
try {
eval("class A { static {} }");
return true;
} catch {
return false;
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/es2022/counter.js | test/cases/parsing/es2022/counter.js | let value = 0;
let value2 = 5;
const add = () => value++;
export { value, add, value2 as "test name" }
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/es2022/index.js | test/cases/parsing/es2022/index.js | import { value, add } from "./counter";
import Foo from "./es2022";
import C from "./in";
import { "string name" as alias } from "./name";
it("should compile and run", () => {
new Foo(add);
expect(value).toBe(2);
const c = new C(1);
expect(C.getX(c)).toBe(1)
expect(alias).toBe("test")
expect(Foo.getVar()).toBe(5... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/es2022/name.js | test/cases/parsing/es2022/name.js | const variable1 = "test";
export { variable1 as "string name" };
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/es2022/es2022.js | test/cases/parsing/es2022/es2022.js | import { "\0 add" as add, "string name" as variable } from './reexport';
export default class Foo {
static {
new Foo(add);
}
constructor(fn) {
this.#foo = fn;
this.#add();
}
#foo = undefined;
#add() {
if (#foo in this && this.#foo) {
this.#foo();
}
}
static getVar() {
return variable;
}
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2600/index.js | test/cases/parsing/issue-2600/index.js | if(Math.sin(1) > 1000)
import("missing");
it("should run", function() {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2600/errors.js | test/cases/parsing/issue-2600/errors.js | "use strict";
module.exports = [[/Can't resolve 'missing'/]];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2618/test.filter.js | test/cases/parsing/issue-2618/test.filter.js | "use strict";
const supportsES6 = require("../../../helpers/supportsES6");
module.exports = () => supportsES6();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2618/index.js | test/cases/parsing/issue-2618/index.js | import defaultValue, { value, value2, value3, value4 } from "./module";
it("should be possible to redefine Object in a module", function() {
expect(value).toBe(123);
expect(value2).toBe(123);
expect(value3).toBe(123);
expect(value4).toBe(123);
expect(defaultValue).toBe(123);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2618/module2.js | test/cases/parsing/issue-2618/module2.js | export var value3 = 123;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2618/module.js | test/cases/parsing/issue-2618/module.js | var Object = 123;
export const value = Object;
export var value2 = Object;
export default Object;
export * from "./module2";
export { value3 as value4 } from "./module2";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/import-meta/test.filter.js | test/cases/parsing/import-meta/test.filter.js | "use strict";
const supportsRequireInModule = require("../../../helpers/supportsRequireInModule");
module.exports = (config) => !config.module || supportsRequireInModule();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/import-meta/warnings.js | test/cases/parsing/import-meta/warnings.js | "use strict";
module.exports = [
[
/'import\.meta' cannot be used as a standalone expression\. For static analysis, its properties must be accessed directly \(e\.g\., 'import\.meta\.url'\) or through destructuring\./
]
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/import-meta/index.js | test/cases/parsing/import-meta/index.js | const { pathToFileURL } = require("url");
const url = pathToFileURL(
require("path").resolve("./test/cases/parsing/import-meta/index.js")
).toString();
const webpackVersion = parseInt(
require("../../../../package.json").version,
10
);
it('typeof import.meta === "object"', () => {
expect(typeof import.meta).toBe("... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/class-properties/test.filter.js | test/cases/parsing/class-properties/test.filter.js | "use strict";
const supportsClassFields = require("../../../helpers/supportsClassFields");
module.exports = () => supportsClassFields();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/class-properties/index.js | test/cases/parsing/class-properties/index.js | import { A, B } from "./module";
import { A as A1, B as B1 } from "./module?1";
it("should not rename class properties", function () {
expect(A.staticProp).toBe("value");
expect(B.staticProp).toBe("value");
expect(A1.staticProp).toBe("value");
expect(B1.staticProp).toBe("value");
expect(A.value).toBe("value");
e... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/class-properties/module.js | test/cases/parsing/class-properties/module.js | import {
staticProp as importedStaticProp,
prop as importedProp
} from "./module";
export const staticProp = "value";
export const prop = "value";
export class A {
static staticProp = staticProp;
static [staticProp] = staticProp;
prop = prop;
[prop] = prop;
}
export class B {
static staticProp = importedStati... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-5889/index.js | test/cases/parsing/issue-5889/index.js | const result = require("./module");
it("should correctly replace 'require' bindings", () => {
expect(result).toBe(true);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-5889/module.js | test/cases/parsing/issue-5889/module.js | let result = false;
if (require) {
result = true;
}
module.exports = result;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/asi/warnings.js | test/cases/parsing/asi/warnings.js | "use strict";
module.exports = [
[
/Critical dependency: 'import\.meta' cannot be used as a standalone expression\. For static analysis, its properties must be accessed directly \(e\.g\., 'import\.meta\.url'\) or through destructuring\./
]
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/asi/index.js | test/cases/parsing/asi/index.js | import {a as b, callme, getCount} from "./a";
import * as c from "./b";
function donotcallme() {
expect("asi unsafe call happened").toBe(false);
}
it("should respect asi flag", () => {
(donotcallme)
import.meta;
(donotcallme)
b();
(donotcallme)
c;
var i = 0
for (;i < 10;i++) callme()
var i = 0
for (;i < 1... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/asi/a.js | test/cases/parsing/asi/a.js | export function a() {}
let count = 0;
export function callme() {
count++;
}
export function getCount() {
return count;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/hot-hash/index.js | test/cases/parsing/hot-hash/index.js | if(module.hot) {
it("should have __webpack_hash__", function() {
expect(typeof __webpack_hash__).toBeTypeOf("string");
expect(__webpack_hash__).toMatch(/^[0-9a-f]{20}$/);
});
} else {
it("should have __webpack_hash__ (disabled)", function() {
});
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/evaluate-nullish/test.filter.js | test/cases/parsing/evaluate-nullish/test.filter.js | "use strict";
const supportsNullishCoalescing = require("../../../helpers/supportsNullishCoalescing");
module.exports = () => supportsNullishCoalescing();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/evaluate-nullish/index.js | test/cases/parsing/evaluate-nullish/index.js | function a() {}
it("should evaluate nullish coalescing", function () {
expect("" ?? require("fail")).toBe("");
expect(String.raw`aaaa` ?? require("fail")).toBe("aaaa");
expect(a`aaaa` ?? "expected").toBe("expected");
expect(null ?? "expected").toBe("expected");
expect(("" ?? require("fail")) && true).toBe("");
l... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2622/test.filter.js | test/cases/parsing/issue-2622/test.filter.js | "use strict";
const supportsDefaultArgs = require("../../../helpers/supportsDefaultArgs");
module.exports = () => supportsDefaultArgs();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2622/index.js | test/cases/parsing/issue-2622/index.js | import { a, b } from "./module";
function func(x = a, y = b) {
return [x, y];
}
var func2 = function(x = a, y = b) {
return [x, y];
}
it("should import into default parameters", function() {
expect(func()).toEqual(["a", "b"]);
expect(func2()).toEqual(["a", "b"]);
expect(func(1)).toEqual([1, "b"]);
expect(func2... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-2622/module.js | test/cases/parsing/issue-2622/module.js | export var a = "a";
export var b = "b";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/precreated-ast/wrong.js | test/cases/parsing/precreated-ast/wrong.js | module.exports = "wrong";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/precreated-ast/ast-loader.js | test/cases/parsing/precreated-ast/ast-loader.js | "use strict";
const acorn = require("acorn");
const acornParser = acorn.Parser;
/** @type {import("../../../../").LoaderDefinition} */
module.exports = function (source) {
/** @type {acorn.Comment[]} */
const comments = [];
const semicolons = new Set();
//@ts-ignore
const ast = acornParser.parse(source, {
ran... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/precreated-ast/index.js | test/cases/parsing/precreated-ast/index.js | it("should be able to process AST from loader", function() {
expect(require("./ast-loader!./module")).toBe("ok");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/precreated-ast/ok.js | test/cases/parsing/precreated-ast/ok.js | module.exports = "ok";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/precreated-ast/module.js | test/cases/parsing/precreated-ast/module.js | module.exports = require("./wrong");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-destructuring-assignment/counter4.js | test/cases/parsing/harmony-destructuring-assignment/counter4.js | export let counter = 0;
export const d = 1;
export const c = 1;
export const e = 1;
export const f = 1;
export const g = 1;
export const exportsInfo = {
counter: __webpack_exports_info__.counter.used,
d: __webpack_exports_info__.d.used,
c: __webpack_exports_info__.c.used,
e: __webpack_exports_info__.e.used,
f: __... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-destructuring-assignment/test.filter.js | test/cases/parsing/harmony-destructuring-assignment/test.filter.js | "use strict";
module.exports = (config) =>
// This test can't run in development mode
config.mode !== "development";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-destructuring-assignment/counter.js | test/cases/parsing/harmony-destructuring-assignment/counter.js | export let counter = 0;
export const d = 1;
export const c = 1;
export const exportsInfo = {
counter: __webpack_exports_info__.counter.used,
d: __webpack_exports_info__.d.used,
c: __webpack_exports_info__.c.used
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-destructuring-assignment/index.js | test/cases/parsing/harmony-destructuring-assignment/index.js | import * as C from "./reexport-namespace";
import { counter } from "./reexport-namespace";
import { exportsInfo } from "./counter";
import { exportsInfo as exportsInfo2 } from "./counter2";
import * as counter3 from "./counter3";
import * as counter4 from "./counter4";
it("expect tree-shake unused exports #1", () => {... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-destructuring-assignment/reexport-namespace.js | test/cases/parsing/harmony-destructuring-assignment/reexport-namespace.js | import * as counter from "./counter";
export { counter };
import * as counter2 from "./counter2";
export { counter2 };
export const D = 1;
export const E = 1;
export const exportsInfo = {
D: __webpack_exports_info__.D.used,
E: __webpack_exports_info__.E.used,
counter: __webpack_exports_info__.counter.used,
counte... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-destructuring-assignment/counter2.js | test/cases/parsing/harmony-destructuring-assignment/counter2.js | export let counter = 0;
export const d = 1;
export const exportsInfo = {
counter: __webpack_exports_info__.counter.used,
d: __webpack_exports_info__.d.used
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-destructuring-assignment/counter3.js | test/cases/parsing/harmony-destructuring-assignment/counter3.js | export let counter = 0;
export const d = 1;
export const exportsInfo = {
counter: __webpack_exports_info__.counter.used,
d: __webpack_exports_info__.d.used
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-star-conflict/warnings.js | test/cases/parsing/harmony-star-conflict/warnings.js | "use strict";
module.exports = [
[
/conflicting star exports/,
/names 'named1', 'named2', 'named3' /,
/\.\/a\.js/,
/\.\/b\.js/
],
[
/conflicting star exports/,
/names 'named1', 'named2', 'named3' /,
/\.\/a\.js/,
/\.\/b\.js/
]
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-star-conflict/index.js | test/cases/parsing/harmony-star-conflict/index.js | import {
named1,
named2,
named3,
named4,
named5,
named6
} from "./named-with-namespace";
it("should point out conflicts from named to namespace", () => {
expect(named1).toBe(1);
expect(named2).toBe(2);
expect(named3).toBe(2);
expect(named4).toMatchObject({
named1: 1,
named2: 2
});
expect(named5).toBe(5... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-star-conflict/named-with-namespace/index.js | test/cases/parsing/harmony-star-conflict/named-with-namespace/index.js | export * from "./a.js";
export * from "./b.js";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-star-conflict/named-with-namespace/b.js | test/cases/parsing/harmony-star-conflict/named-with-namespace/b.js | export * as named1 from "./a.js";
export { named1 as named2 } from "./a.js";
export { named1 as named3 } from "./a.js";
export * as named4 from "./a.js";
export { named5 } from "./a.js";
export { named1 as named6 } from "./a.js";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-star-conflict/named-with-namespace/a.js | test/cases/parsing/harmony-star-conflict/named-with-namespace/a.js | export const named1 = 1;
export const named2 = 2;
export { named2 as named3 } from "./a.js";
export * as named4 from "./a.js";
export const named5 = 5;
export { named1 as named6 } from "./a.js";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-star-conflict/named-with-namespace-no-side/index.js | test/cases/parsing/harmony-star-conflict/named-with-namespace-no-side/index.js | export * from "./a.js";
export * from "./b.js";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-star-conflict/named-with-namespace-no-side/b.js | test/cases/parsing/harmony-star-conflict/named-with-namespace-no-side/b.js | export * as named1 from "./a.js";
export { named1 as named2 } from "./a.js";
export { named1 as named3 } from "./a.js";
export * as named4 from "./a.js";
export { named5 } from "./a.js";
export { named1 as named6 } from "./a.js";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-star-conflict/named-with-namespace-no-side/a.js | test/cases/parsing/harmony-star-conflict/named-with-namespace-no-side/a.js | export const named1 = 1;
export const named2 = 2;
export { named2 as named3 } from "./a.js";
export * as named4 from "./a.js";
export const named5 = 5;
export { named1 as named6 } from "./a.js";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-4608-1/index.js | test/cases/parsing/issue-4608-1/index.js | it("should find var declaration later in code", function () {
expect(typeof require).toBe("undefined");
var require;
});
it("should find var declaration in same statement", function () {
var fn = function () {
require("fail");
},
require;
require = function (x) {
expect(x).toBe("fail");
};
fn();
});
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/func-with-args-with-name.js | test/cases/parsing/harmony-export-hoist/func-with-args-with-name.js | import f from "./get-func-with-args-with-name";
expect(f(123)).toBe("ok123");
if (process.env.NODE_ENV !== "production") expect(f.name).toBe("def");
expect(def).toBe(f);
export default function def(x) {
return "ok" + x;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/get-class-with-super-with-name.js | test/cases/parsing/harmony-export-hoist/get-class-with-super-with-name.js | export { default } from "./class-with-super-with-name";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/func-with-args-no-name.js | test/cases/parsing/harmony-export-hoist/func-with-args-no-name.js | import f from "./get-func-with-args-no-name";
expect(f(123)).toBe("ok123");
export default function (x) {
return "ok" + x;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/index.js | test/cases/parsing/harmony-export-hoist/index.js | "use strict";
it("should hoist exports", function () {
var result = require("./foo").results;
expect(typeof result.foo).toEqual("function");
expect(typeof result.foo2).toEqual("function");
expect(typeof result.foo3).toEqual("function");
expect(result.foo()).toBe("ok");
expect(result.foo2()).toBe("ok");
expect(r... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/func-no-args-with-name.js | test/cases/parsing/harmony-export-hoist/func-no-args-with-name.js | import f from "./get-func-no-args-with-name";
expect(f()).toBe("ok");
expect(def).toBe(f);
if (process.env.NODE_ENV !== "production") expect(f.name).toBe("def");
export default function def() {
return "ok";
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/get-func-with-args-with-name.js | test/cases/parsing/harmony-export-hoist/get-func-with-args-with-name.js | export { default } from "./func-with-args-with-name";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/get-func-with-args-no-name.js | test/cases/parsing/harmony-export-hoist/get-func-with-args-no-name.js | export { default } from "./func-with-args-no-name";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/get-class-with-super-no-name.js | test/cases/parsing/harmony-export-hoist/get-class-with-super-no-name.js | export { default } from "./class-with-super-no-name";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/get-class-no-name.js | test/cases/parsing/harmony-export-hoist/get-class-no-name.js | export { default } from "./class-no-name";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/bar.js | test/cases/parsing/harmony-export-hoist/bar.js | import { foo, foo2 } from "./foo";
import foo3 from "./foo";
export default {
foo: foo,
foo2: foo2,
foo3
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/foo.js | test/cases/parsing/harmony-export-hoist/foo.js | import { bar } from "./bar";
export function foo() {
return "ok";
}
function foo2() {
return "ok";
}
export { foo2 };
export default function () {
return "ok";
}
export { default as results } from "./bar";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/get-func-no-args-no-name.js | test/cases/parsing/harmony-export-hoist/get-func-no-args-no-name.js | export { default } from "./func-no-args-no-name";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/get-class-with-name.js | test/cases/parsing/harmony-export-hoist/get-class-with-name.js | export { default } from "./class-with-name";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/class-with-name.js | test/cases/parsing/harmony-export-hoist/class-with-name.js | import c from "./get-class-with-name";
export default class def {
f() {
return "ok";
}
}
expect(new c().f()).toBe("ok");
if (process.env.NODE_ENV !== "production") expect(c.name).toBe("def");
expect(def).toBe(c);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/func-no-args-no-name.js | test/cases/parsing/harmony-export-hoist/func-no-args-no-name.js | import f from "./get-func-no-args-no-name";
expect(f()).toBe("ok");
export default function () {
return "ok";
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/class-with-super-no-name.js | test/cases/parsing/harmony-export-hoist/class-with-super-no-name.js | import c from "./get-class-with-super-no-name";
class sup {
g() {
return "ok";
}
}
export default class extends sup {
f() {
return "ok";
}
}
expect(new c().f()).toBe("ok");
expect(new c().g()).toBe("ok");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/class-with-super-with-name.js | test/cases/parsing/harmony-export-hoist/class-with-super-with-name.js | import c from "./get-class-with-super-with-name";
class sup {
g() {
return "ok";
}
}
export default class def extends sup {
f() {
return "ok";
}
}
expect(new c().f()).toBe("ok");
expect(new c().g()).toBe("ok");
if (process.env.NODE_ENV !== "production") expect(c.name).toBe("def");
expect(c).toBe(def);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/get-func-no-args-with-name.js | test/cases/parsing/harmony-export-hoist/get-func-no-args-with-name.js | export { default } from "./func-no-args-with-name";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-export-hoist/class-no-name.js | test/cases/parsing/harmony-export-hoist/class-no-name.js | import c from "./get-class-no-name";
export default class {
f() {
return "ok";
}
}
expect(new c().f()).toBe("ok");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-4608-1-non-strict/test.filter.js | test/cases/parsing/issue-4608-1-non-strict/test.filter.js | "use strict";
module.exports = (config) => !config.module;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-4608-1-non-strict/index.js | test/cases/parsing/issue-4608-1-non-strict/index.js | it("should find var declaration in control statements", function () {
var f = function (x) {
expect(x).toBe("fail");
};
(function () {
with ({ a: 1 }) {
var require = f;
}
require("fail");
})();
});
it("should find var declaration in control statements after usage", function () {
var f = function (x)... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/class/test.filter.js | test/cases/parsing/class/test.filter.js | "use strict";
const supportsES6 = require("../../../helpers/supportsES6");
module.exports = () => supportsES6();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/class/index.js | test/cases/parsing/class/index.js | import X, { A, B } from "./module";
it("should parse classes", function() {
expect(new X().a).toBe("ok");
expect(new A().a).toBe("ok");
expect(new B().a).toBe("ok");
});
it("should parse methods", function() {
expect(new X().b()).toBe("ok");
expect(X.c()).toBe("ok");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/class/module.js | test/cases/parsing/class/module.js | class A {
constructor() {
this.a = require("./a");
}
}
const B = class {
constructor() {
this.a = require("./a");
}
};
export default class {
constructor() {
this.a = require("./a");
}
b() {
return require("./a");
}
static c() {
return require("./a");
}
};
export {
A,
B
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/class/a.js | test/cases/parsing/class/a.js | module.exports = "ok";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-387/index.js | test/cases/parsing/issue-387/index.js | it("should parse cujojs UMD modules", function() {
(function (define) {
// using the define signature that triggers AMD-wrapped CommonJS
define(function (require) {
return 123;
});
}(
typeof define == 'function' && define.amd
? define
: function (factory) { module.exports = factory(require); }
));
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/issue-387/file.js | test/cases/parsing/issue-387/file.js | module.exports = 4321; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/resolve-weak-context/index.js | test/cases/parsing/resolve-weak-context/index.js | it("should be able to use require.resolveWeak with expression", function() {
var expr = "file";
var id = require.resolveWeak("./dir/" + expr);
expect(id).toBe(require("./dir/file.js"));
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/resolve-weak-context/dir/file.js | test/cases/parsing/resolve-weak-context/dir/file.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/pattern-in-for/index.js | test/cases/parsing/pattern-in-for/index.js | it("should parse patterns in for in/of statements", () => {
var message;
for({ message = require("./module")} of [{}]) {
expect(message).toBe("ok");
}
for({ message = require("./module") } in { "string": "value" }) {
expect(message).toBe("ok");
}
for(var { value = require("./module")} of [{}]) {
expect(valu... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/pattern-in-for/module.js | test/cases/parsing/pattern-in-for/module.js | module.exports = "ok";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-duplicate-export/1.js | test/cases/parsing/harmony-duplicate-export/1.js | export var x = "1";
export * from "./a?1";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-duplicate-export/7.js | test/cases/parsing/harmony-duplicate-export/7.js | // This leads to an error
export * from "./d?7";
export * from "./b?7";
export * from "./c?7";
export * from "./a?7";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-duplicate-export/3.js | test/cases/parsing/harmony-duplicate-export/3.js | // This leads to an error
export * from "./a?3";
export * from "./b?3";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-duplicate-export/5.js | test/cases/parsing/harmony-duplicate-export/5.js | // Theoretically this should lead to an error
// but in this dynamic case it's impossible to detect it
export * from "./c?5";
export * from "./d?5";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/parsing/harmony-duplicate-export/reexport.js | test/cases/parsing/harmony-duplicate-export/reexport.js | export * from "./a";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.