Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /wasm/jsapi/esm-integration/wasm-import-wasm-export.tentative.any.js - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/wasm-import-wasm-export.tentative.any.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/wasm-import-wasm-export.tentative.any.shadowrealm-in-dedicatedworker.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/wasm-import-wasm-export.tentative.any.shadowrealm-in-shadowrealm.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/wasm-import-wasm-export.tentative.any.shadowrealm-in-sharedworker.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/wasm-import-wasm-export.tentative.any.shadowrealm-in-window.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/wasm-import-wasm-export.tentative.any.worker.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/wasm-import-wasm-export.tentative.https.any.shadowrealm-in-audioworklet.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/wasm-import-wasm-export.tentative.https.any.shadowrealm-in-serviceworker.html - WPT Dashboard Interop Dashboard
// META: global=window,dedicatedworker,jsshell,shadowrealm
promise_test(async () => {
globalThis.log = [];
const { logExec } = await import("./resources/wasm-import-from-wasm.wasm");
logExec();
assert_equals(globalThis.log.length, 1, "log should have one entry");
assert_equals(globalThis.log[0], "executed");
// Clean up
delete globalThis.log;
}, "Check import and export between WebAssembly modules");