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/string-constants.tentative.any.js - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/string-constants.tentative.any.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/string-constants.tentative.any.shadowrealm-in-dedicatedworker.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/string-constants.tentative.any.shadowrealm-in-shadowrealm.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/string-constants.tentative.any.shadowrealm-in-sharedworker.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/string-constants.tentative.any.shadowrealm-in-window.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/string-constants.tentative.any.worker.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/string-constants.tentative.https.any.shadowrealm-in-audioworklet.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/esm-integration/string-constants.tentative.https.any.shadowrealm-in-serviceworker.html - WPT Dashboard Interop Dashboard
// META: global=window,dedicatedworker,jsshell,shadowrealm
promise_test(async () => {
const wasmModule = await import("./resources/js-string-constants.wasm");
assert_equals(wasmModule.empty, "");
assert_equals(wasmModule.nullByte, "\0");
assert_equals(wasmModule.hello, "hello");
assert_equals(wasmModule.emoji, "\u{1F600}");
}, "String constants from wasm:js/string-constants should be supported in ESM integration");