Skip to content

Commit 534ec32

Browse files
committed
1 parent 4c5ece5 commit 534ec32

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

wasm/jsapi/esm-integration/mutable-global-sharing.tentative.any.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// META: global=window,dedicatedworker,jsshell,shadowrealm
2+
13
promise_test(async () => {
24
const exporterModule = await import("./resources/mutable-global-export.wasm");
35
const reexporterModule = await import(
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as mod1 from './exports.wasm';
2+
import * as mod2 from './exports.wasm';
3+
import source mod3 from './exports.wasm';
4+
import source mod4 from './exports.wasm';
5+
6+
export { mod1, mod2, mod3, mod4 }

wasm/jsapi/esm-integration/source-phase.tentative.any.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ promise_test(async () => {
4040
instance.exports.logExec();
4141
assert_true(logged, "WebAssembly instance should execute imported function");
4242
}, "Source phase imports");
43+
44+
promise_test(async () => {
45+
const { mod1, mod2, mod3, mod4 } = await import('./resources/source-phase-identity.js');
46+
47+
assert_equals(mod1, mod2);
48+
assert_equals(mod3, mod4);
49+
}, "Source phase identities");

0 commit comments

Comments
 (0)