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/json/default-default/index.js
test/cases/json/default-default/index.js
import { default as f } from "../data/f.json?default-imported"; import * as fStar from "../data/f.json?ns-imported"; it("should be possible to access a default key", () => { expect(f.default).toBe("default"); expect(fStar.default.default).toBe("default"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-with-default-with-concatenation/index.js
test/cases/json/import-with-default-with-concatenation/index.js
import "../import-with-default";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-assertions-type-json/index.js
test/cases/json/import-assertions-type-json/index.js
import c from "../data/c.json" assert { type: "json" }; import unknownJson from "../data/unknown" assert { type: "json" }; import unknownJs from "../data/unknown"; it("should be possible to import json data with import assertion", function () { expect(c).toEqual([1, 2, 3, 4]); }); it("should be possible to import js...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-assertions-type-json/infrastructure-log.js
test/cases/json/import-assertions-type-json/infrastructure-log.js
"use strict"; module.exports = [ /^Pack got invalid because of write to: Compilation\/modules|json.+json\/data\/poison$/ ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-assertions-type-json/import-poison.js
test/cases/json/import-assertions-type-json/import-poison.js
import poison from "../data/poison" assert { type: "json" }; export default poison;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-assertions-type-json/errors.js
test/cases/json/import-assertions-type-json/errors.js
"use strict"; module.exports = [ [{ moduleName: /data.poison/, message: /Unexpected token .+ JSON/ }] ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-by-name-with-concatenation/warnings.js
test/cases/json/import-by-name-with-concatenation/warnings.js
"use strict"; module.exports = [ [ /Should not import the named export '2' \(imported as 'c'\) from default-exporting module \(only default export is available soon\)/ ], [ /Should not import the named export 'aa' \(imported as 'aa'\) from default-exporting module \(only default export is available soon\)/ ], ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-by-name-with-concatenation/index.js
test/cases/json/import-by-name-with-concatenation/index.js
import "../import-by-name";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/data/index.js
test/cases/json/data/index.js
it("should require json via require", function() { expect({ data: require("./a.json") }).toEqual({ data: null }); expect({ data: require("./b.json") }).toEqual({ data: 123 }); expect({ data: require("./c.json") }).toEqual({ data: [1, 2, 3, 4] }); expect({ data: require("./e.json") }).toEqual({ data: { "aa": 1, ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-by-name/warnings.js
test/cases/json/import-by-name/warnings.js
"use strict"; module.exports = [ [ /Should not import the named export '2' \(imported as 'c'\) from default-exporting module \(only default export is available soon\)/ ], [ /Should not import the named export 'aa' \(imported as 'aa'\) from default-exporting module \(only default export is available soon\)/ ], ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-by-name/index.js
test/cases/json/import-by-name/index.js
import * as c from "../data/c.json"; import * as d from "../data/d.json"; import { bb, aa } from "../data/e.json"; import f, { named } from "../data/f.json"; import g, { named as gnamed } from "../data/g.json"; it("should be possible to import json data", function() { expect(c[2]).toBe(3); expect(Object.keys(d)).toE...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/reexport/reexport.js
test/cases/json/reexport/reexport.js
export { default as e } from "../data/e.json"; export { default as f } from "../data/f.json?default-exported"; export { named as fNamed } from "../data/f.json?only-named-exported"; import * as fStar from "../data/f.json?namespace-object-exported"; export { fStar }; import * as fStarPartial from "../data/f.json?namespac...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/reexport/warnings.js
test/cases/json/reexport/warnings.js
"use strict"; module.exports = [ [ /Should not import the named export 'named' \(reexported as 'fNamed'\) from default-exporting module \(only default export is available soon\)/ ] ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/reexport/index.js
test/cases/json/reexport/index.js
import { e, f, fNamed, fStar, fStarPartial, fStarPartial2 } from "./reexport"; it("should be possible to reexport json data", function() { expect(e.aa).toBe(1); expect(e.bb).toBe(2); expect(f).toEqual({ named: "named", default: "default", __esModule: true }); expect(fNamed).toBe("named"); const _fStar = fS...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-named-with-type-json/warnings.js
test/cases/json/import-named-with-type-json/warnings.js
"use strict"; module.exports = [ /Can't import the named export 'aa' \(imported as 'aa'\) from default-exporting module/, /Can't import the named export 'named' \(imported as 'named'\) from default-exporting module/ ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/json/import-named-with-type-json/index.js
test/cases/json/import-named-with-type-json/index.js
import { aa } from "../data/e.json" with { type: "json" }; import { named } from '../data/f.json' with { type: "json" }; it("should not allow named import with import assertion", function () { expect(aa).toEqual(undefined); expect(named).toEqual(undefined); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/circular-dependencies/circular.js
test/cases/runtime/circular-dependencies/circular.js
module.exports = 1; module.exports = require("./circular");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/circular-dependencies/index.js
test/cases/runtime/circular-dependencies/index.js
it("should load circular dependencies correctly", function() { expect(require("./circular")).toBe(1); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/circular-dependencies/circular2.js
test/cases/runtime/circular-dependencies/circular2.js
module.exports = 2; module.exports = require("./circular2");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/require-function/fail.js
test/cases/runtime/require-function/fail.js
This file should not load! }][{
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/require-function/index.js
test/cases/runtime/require-function/index.js
__webpack_modules__; require.cache; __webpack_public_path__; it("should have correct properties on the require function", function() { expect(__webpack_require__.c).toBeTypeOf("object"); expect(__webpack_require__.m).toBeTypeOf("object"); expect(__webpack_require__.p).toBeTypeOf("string"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/missing-module-exception-require/warnings.js
test/cases/runtime/missing-module-exception-require/warnings.js
"use strict"; module.exports = [ [/Module not found/, /Can't resolve '\.\/fail-1' /], [/Module not found/, /Can't resolve '\.\/fail-2' /], [/Module not found/, /Can't resolve '\.\/fail-3' /] ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/missing-module-exception-require/index.js
test/cases/runtime/missing-module-exception-require/index.js
it("should have correct error code", function () { try { require("./fail-1"); require("./fail-2").property; require("./fail-3").property.sub(); } catch (e) { expect(e.code).toBe("MODULE_NOT_FOUND"); } });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/issue-1650/index.js
test/cases/runtime/issue-1650/index.js
it("should be able to set the public path globally", function() { var org = __webpack_public_path__; require("./file"); expect(__webpack_public_path__).toBe("ok"); __webpack_public_path__ = org; });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/issue-1650/file.js
test/cases/runtime/issue-1650/file.js
__webpack_public_path__ = "ok";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/chunk-callback-order/duplicate.js
test/cases/runtime/chunk-callback-order/duplicate.js
require.ensure(["./a"], function(require) { expect(require("./a")).toBe("a"); })
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/chunk-callback-order/duplicate2.js
test/cases/runtime/chunk-callback-order/duplicate2.js
require.ensure(["./b"], function(require) { expect(require("./b")).toBe("a"); })
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/chunk-callback-order/index.js
test/cases/runtime/chunk-callback-order/index.js
it("should fire multiple code load callbacks in the correct order", function(done) { var calls = []; require.ensure([], function(require) { require("./duplicate"); require("./duplicate2"); calls.push(1); }); require.ensure([], function(require) { require("./duplicate"); require("./duplicate2"); calls.pu...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/chunk-callback-order/b.js
test/cases/runtime/chunk-callback-order/b.js
module.exports = require("./a");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/chunk-callback-order/a.js
test/cases/runtime/chunk-callback-order/a.js
module.exports = "a";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/module-caching/singular.js
test/cases/runtime/module-caching/singular.js
module.exports.value = 1;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/module-caching/two.js
test/cases/runtime/module-caching/two.js
module.exports = 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/module-caching/singular2.js
test/cases/runtime/module-caching/singular2.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/module-caching/index.js
test/cases/runtime/module-caching/index.js
it("should cache modules correctly", function(done) { delete require.cache[require.resolve("./singular.js")]; expect(require("./singular.js").value).toBe(1); expect((require("./singular.js")).value).toBe(1); require("./sing" + "ular.js").value = 2; expect(require("./singular.js").value).toBe(2); require.ensure(["...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/issue-15518/index.js
test/cases/runtime/issue-15518/index.js
async function dynamic_import(dir, name) { if (dir === "a") { return import( /* webpackChunkName: "a" */ /* webpackMode: "lazy-once" */ `./dynamic_a/${name}.js`); } throw new Error(); } it("should compile and run", async () => { await dynamic_import("a", "module_a1"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/issue-15518/dynamic_a/module_a1.js
test/cases/runtime/issue-15518/dynamic_a/module_a1.js
export const log = 1;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/issue-15518/dynamic_a/module_a2.js
test/cases/runtime/issue-15518/dynamic_a/module_a2.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/issue-1788/index.js
test/cases/runtime/issue-1788/index.js
import { atest, btest } from "./a"; it("should have the correct values", function() { atest(); btest(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/issue-1788/b.js
test/cases/runtime/issue-1788/b.js
import a from './a'; export default 'b-default'; export function btest() { expect(a).toBe("a-default"); }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/issue-1788/a.js
test/cases/runtime/issue-1788/a.js
import b from './b'; export default 'a-default'; export { btest } from "./b"; export function atest() { expect(b).toBe("b-default"); }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/missing-module-syntax-error/index.js
test/cases/runtime/missing-module-syntax-error/index.js
it("should have correct error code", function() { try { require("./module"); } catch(e) { expect(e.code).toBe("MODULE_NOT_FOUND"); } });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/missing-module-syntax-error/errors.js
test/cases/runtime/missing-module-syntax-error/errors.js
"use strict"; module.exports = [[/Module not found/, /Can't resolve '\.\/someModule' /]];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/missing-module-syntax-error/module.js
test/cases/runtime/missing-module-syntax-error/module.js
import { SomeClass } from "./someModule"; new SomeClass();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/missing-module-exception-dynamic-import/warnings.js
test/cases/runtime/missing-module-exception-dynamic-import/warnings.js
"use strict"; module.exports = [ [/Module not found/, /Can't resolve '\.\/fail-1' /], [/Module not found/, /Can't resolve '\.\/fail-2' /], [/Module not found/, /Can't resolve '\.\/fail-3' /] ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/missing-module-exception-dynamic-import/index.js
test/cases/runtime/missing-module-exception-dynamic-import/index.js
it("should have correct error code", async function () { try { await import("./fail-1"); await import("./fail-2").property; await import("./fail-3").property.sub(); } catch (e) { expect(e.code).toBe("MODULE_NOT_FOUND"); } });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/error-handling/warnings.js
test/cases/runtime/error-handling/warnings.js
"use strict"; module.exports = [ [ /Module not found/, /Can't resolve '\.\/missingModule2' /, { moduleName: /error-handling\/index.js/ } ] ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/error-handling/index.js
test/cases/runtime/error-handling/index.js
function testCase(number) { expect(require(number === 1 ? "./folder/file1" : number === 2 ? "./folder/file2" : number === 3 ? "./folder/file3" : "./missingModule")).toBe("file" + number); expect(require( number === 1 ? "./folder/file1" : number === 2 ? "./folder/file2" : number === 3 ? "./folder/file3" : "./m...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/error-handling/errors.js
test/cases/runtime/error-handling/errors.js
"use strict"; module.exports = [ [ /Module not found/, /Can't resolve '\.\/missingModule' /, { moduleName: /error-handling\/index.js/ } ] ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/error-handling/folder/file1.js
test/cases/runtime/error-handling/folder/file1.js
module.exports = "file1";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/error-handling/folder/file2.js
test/cases/runtime/error-handling/folder/file2.js
module.exports = "file2";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/runtime/error-handling/folder/file3.js
test/cases/runtime/error-handling/folder/file3.js
module.exports = "file3";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-many-direct/test.filter.js
test/cases/wasm/imports-many-direct/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-many-direct/index.js
test/cases/wasm/imports-many-direct/index.js
it("should allow to run a WebAssembly module with many direct wasm dependencies", function() { return import("./wasm.wat").then(function(wasm) { const result = wasm.testI64(); expect(result).toEqual(42); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/finalize-exports-issue-8261/test.filter.js
test/cases/wasm/finalize-exports-issue-8261/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/finalize-exports-issue-8261/index.js
test/cases/wasm/finalize-exports-issue-8261/index.js
it("should not throw when no dependency reference", function() { return expect(() => import("side-effect-free")).not.toThrow(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/finalize-exports-issue-8261/node_modules/side-effect-free/index.js
test/cases/wasm/finalize-exports-issue-8261/node_modules/side-effect-free/index.js
export * from "./module.wat";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/wasm-explorer-examples-async/test.filter.js
test/cases/wasm/wasm-explorer-examples-async/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/wasm-explorer-examples-async/index.js
test/cases/wasm/wasm-explorer-examples-async/index.js
it("Q_rsqrt should work", function() { return import("./Q_rsqrt.wasm").then(function(wasm) { const result = wasm._Z7Q_rsqrtf(1/1764); expect(result).toBeGreaterThan(41.9); expect(result).toBeLessThan(42.1); }); }); it("testFunction should work", function() { return import("./testFunction.wasm").then(function(...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/wasm-explorer-examples-async/node_modules/env.js
test/cases/wasm/wasm-explorer-examples-async/node_modules/env.js
export const _Z3powdd = Math.pow;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-circular/test.filter.js
test/cases/wasm/imports-circular/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-circular/index.js
test/cases/wasm/imports-circular/index.js
it("should allow to run a WebAssembly module importing JS circular", function() { return import("./module").then(function(mod) { expect(mod.result).toBe(42); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-circular/module.js
test/cases/wasm/imports-circular/module.js
import { addNumber } from "./wasm.wat"; export var result = addNumber(22); export function getNumber() { return 20; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-multiple/test.filter.js
test/cases/wasm/imports-multiple/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-multiple/index.js
test/cases/wasm/imports-multiple/index.js
it("should allow to run a WebAssembly module importing from multiple modules", function() { return import("./module").then(function(mod) { expect(mod.result).toBe(42); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-multiple/module2.js
test/cases/wasm/imports-multiple/module2.js
import { getNumber as getN } from "./wasm.wasm"; export function getNumber() { return getN(); }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-multiple/module.js
test/cases/wasm/imports-multiple/module.js
import { getResult } from "./wasm.wasm"; export var result = getResult(1); export function getNumber() { return 20; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/two-files-loader/wrapper-loader2.js
test/cases/wasm/two-files-loader/wrapper-loader2.js
/** @type {import("../../../../").PitchLoaderDefinitionFunction} */ module.exports.pitch = function (remainingRequest) { return ` import { getString as _getString, memory } from ${ JSON.stringify(`${this.utils.contextify(this.context, this.resourcePath)}.wat!=!${this.utils.contextify(this.context, remainingRequest)...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/two-files-loader/test.filter.js
test/cases/wasm/two-files-loader/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/two-files-loader/wrapper-loader.js
test/cases/wasm/two-files-loader/wrapper-loader.js
/** @type {import("../../../../").PitchLoaderDefinitionFunction} */ module.exports.pitch = function (remainingRequest) { return ` import { getString as _getString, memory } from ${ JSON.stringify(`${this.utils.contextify(this.context, this.resourcePath)}.wat!=!${this.utils.contextify(this.context, remainingRequest)...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/two-files-loader/index.js
test/cases/wasm/two-files-loader/index.js
it("should be able to create two modules from loader", function() { return import("./wrapper-loader!./src/wasm.dat").then(function(wasm) { expect(wasm.getString()).toEqual("Hello World"); }); }); it("should be able to create two modules from loader with remaining request", function() { return import("./wrapper-lo...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/decoding/test.filter.js
test/cases/wasm/decoding/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/decoding/index.js
test/cases/wasm/decoding/index.js
it("should support wasm compiled from c++", function() { return import("./memory3.wasm").then(function(wasm) { expect(wasm._Z3getv()).toBe(0); wasm._Z3seti(42); expect(wasm._Z3getv()).toBe(42); }); }); it("should raw memory export without data", function() { return import("./memory2.wasm").then(function(wasm)...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/memory/test.filter.js
test/cases/wasm/memory/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/memory/index.js
test/cases/wasm/memory/index.js
it("should allow direct memory connection between wasm modules", function() { return import("./run").then(function(module) { expect(module.x1).toBe(42); expect(module.x2).toBe(42); expect(module.y1).toBe(11); expect(module.y2).toBe(11); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/memory/run.js
test/cases/wasm/memory/run.js
import * as a1 from "./mem-access.wat?1"; import * as a2 from "./mem-access.wat?2"; a1.set(42); export const x1 = a1.get(); export const x2 = a2.get(); a2.set(11); export const y1 = a1.get(); export const y2 = a2.get();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-complex-types/test.filter.js
test/cases/wasm/imports-complex-types/test.filter.js
"use strict"; const supports = require("webassembly-feature"); module.exports = () => supports.simd();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imports-complex-types/index.js
test/cases/wasm/imports-complex-types/index.js
it("should allow to run a WebAssembly module with non-js-compatible imports", function() { return import("./wasm.wasm").then(function(wasm) { const result = wasm.testV128(); expect(result).toEqual(42); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/global-refs-imported-global/env.js
test/cases/wasm/global-refs-imported-global/env.js
export const n = 33;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/global-refs-imported-global/test.filter.js
test/cases/wasm/global-refs-imported-global/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/global-refs-imported-global/index.js
test/cases/wasm/global-refs-imported-global/index.js
it("should allow global with imported global as initializer", function() { return import("./module.wat").then(function({get}) { expect(get()).toEqual(33); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/order/test.filter.js
test/cases/wasm/order/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/order/index.js
test/cases/wasm/order/index.js
it("should be evaluated in the correct order", () => { return import("./a").then(({ default: results }) => { return Promise.resolve().then(() => { // wait an extra tick to get the tick from the tracker expect(results).toEqual(["b", "c", "tick", "wasm42", "a"]); }); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/order/b.js
test/cases/wasm/order/b.js
import { trackB } from "./tracker"; trackB();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/order/tracker.js
test/cases/wasm/order/tracker.js
export let results = []; export function trackA() { results.push("a"); } export function trackB() { results.push("b"); } export function trackC() { results.push("c"); } export function trackWasm(number) { results.push("wasm" + number); } Promise.resolve().then(() => results.push("tick"));
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/order/c.js
test/cases/wasm/order/c.js
import { trackC } from "./tracker"; trackC(); export const magicNumber = 42;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/order/a.js
test/cases/wasm/order/a.js
import { trackA, results } from "./tracker"; import "./b.js"; import "./wasm.wat"; trackA(); export default results;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/export-imported-global/env.js
test/cases/wasm/export-imported-global/env.js
export const n = 1; export const m = 1.25
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/export-imported-global/test.filter.js
test/cases/wasm/export-imported-global/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/export-imported-global/index.js
test/cases/wasm/export-imported-global/index.js
it("should export imported global", function() { return import("./module").then(function({ v, w, x, test }) { if (WebAssembly.Global) { expect(v.constructor).toBe(WebAssembly.Global); expect(w.constructor).toBe(WebAssembly.Global); expect(x.constructor).toBe(WebAssembly.Global); expect(+v).toBe(1); e...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/export-imported-global/module.js
test/cases/wasm/export-imported-global/module.js
export * from "./module.wat";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imported-global-preserve-type/env.js
test/cases/wasm/imported-global-preserve-type/env.js
export const number = 0xFFFFFFFFFF;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imported-global-preserve-type/test.filter.js
test/cases/wasm/imported-global-preserve-type/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imported-global-preserve-type/index.js
test/cases/wasm/imported-global-preserve-type/index.js
it("should preserve the valtype of the imported global", function() { return import("./module.wat").then(function({get}) { expect(get()).toBe(0xFFFFFFFFFF); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imported-global-preserve-ordering/env.js
test/cases/wasm/imported-global-preserve-ordering/env.js
export const a = 1; export const b = 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imported-global-preserve-ordering/test.filter.js
test/cases/wasm/imported-global-preserve-ordering/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/imported-global-preserve-ordering/index.js
test/cases/wasm/imported-global-preserve-ordering/index.js
it("should preserve the ordering of globals", function() { return import("./module.wat").then(function(e) { if (WebAssembly.Global) { expect(e.c.constructor).toBe(WebAssembly.Global); expect(e.d.constructor).toBe(WebAssembly.Global); expect(+e.c).toBe(3); expect(+e.d).toBe(4); } else { expect(e.c)....
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/simple/test.filter.js
test/cases/wasm/simple/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/simple/index.js
test/cases/wasm/simple/index.js
it("should allow to run a WebAssembly module (indirect)", function() { return import("./module").then(function(module) { const result = module.run(); expect(result).toEqual(42); }); }); it("should allow to run a WebAssembly module (direct)", function() { return import("./wasm.wat?2").then(function(wasm) { con...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/simple/module.js
test/cases/wasm/simple/module.js
import { add, getNumber } from "./wasm.wat?1"; export function run() { return add(getNumber(), 2); }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/cases/wasm/import-wasm-wasm/test.filter.js
test/cases/wasm/import-wasm-wasm/test.filter.js
"use strict"; const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false