aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/wasm/jsapi/memory/constructor.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/wasm/jsapi/memory/constructor.any.js')
-rw-r--r--tests/wpt/web-platform-tests/wasm/jsapi/memory/constructor.any.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/memory/constructor.any.js b/tests/wpt/web-platform-tests/wasm/jsapi/memory/constructor.any.js
index 5caf7cc8bb9..a584a23ecf0 100644
--- a/tests/wpt/web-platform-tests/wasm/jsapi/memory/constructor.any.js
+++ b/tests/wpt/web-platform-tests/wasm/jsapi/memory/constructor.any.js
@@ -139,3 +139,9 @@ test(() => {
const memory = new WebAssembly.Memory(argument);
assert_Memory(memory, { "size": 4 });
}, "Non-zero initial");
+
+test(() => {
+ const argument = { "initial": 0 };
+ const memory = new WebAssembly.Memory(argument, {});
+ assert_Memory(memory, { "size": 0 });
+}, "Stray argument");