diff options
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.js | 4 |
1 files changed, 4 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 f9907ca6104..5caf7cc8bb9 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 @@ -80,6 +80,10 @@ for (const value of outOfRangeValues) { } test(() => { + assert_throws(new RangeError(), () => new WebAssembly.Memory({ "element": "anyfunc", "initial": 10, "maximum": 9 })); +}, "Initial value exceeds maximum"); + +test(() => { const proxy = new Proxy({}, { has(o, x) { assert_unreached(`Should not call [[HasProperty]] with ${x}`); |