Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /wasm/jsapi/esm-integration/js-wasm-cycle.tentative.any.js - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/js-wasm-cycle.tentative.any.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/js-wasm-cycle.tentative.any.shadowrealm-in-dedicatedworker.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/js-wasm-cycle.tentative.any.shadowrealm-in-shadowrealm.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/js-wasm-cycle.tentative.any.shadowrealm-in-sharedworker.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/js-wasm-cycle.tentative.any.shadowrealm-in-window.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/js-wasm-cycle.tentative.any.worker.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/js-wasm-cycle.tentative.https.any.shadowrealm-in-audioworklet.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/js-wasm-cycle.tentative.https.any.shadowrealm-in-serviceworker.html - WPT Dashboard Interop Dashboard
// META: global=window,dedicatedworker,jsshell,shadowrealm
promise_test(async () => {
const { f } = await import("./resources/js-wasm-cycle.js");
assert_equals(f(), 24);
}, "Check bindings in JavaScript and WebAssembly cycle (JS higher)");