summaryrefslogtreecommitdiff
path: root/tests/specs/run/wasm_shared/wasm_shared.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/run/wasm_shared/wasm_shared.ts')
-rw-r--r--tests/specs/run/wasm_shared/wasm_shared.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/specs/run/wasm_shared/wasm_shared.ts b/tests/specs/run/wasm_shared/wasm_shared.ts
new file mode 100644
index 000000000..b713385d5
--- /dev/null
+++ b/tests/specs/run/wasm_shared/wasm_shared.ts
@@ -0,0 +1,6 @@
+const memory = new WebAssembly.Memory({
+ initial: 1,
+ maximum: 10,
+ shared: true,
+});
+console.assert(memory.buffer instanceof SharedArrayBuffer);