diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/wasm/jsapi/table/constructor.any.js')
-rw-r--r-- | tests/wpt/web-platform-tests/wasm/jsapi/table/constructor.any.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/table/constructor.any.js b/tests/wpt/web-platform-tests/wasm/jsapi/table/constructor.any.js index e924bdb2ba4..99eee19fecd 100644 --- a/tests/wpt/web-platform-tests/wasm/jsapi/table/constructor.any.js +++ b/tests/wpt/web-platform-tests/wasm/jsapi/table/constructor.any.js @@ -97,6 +97,12 @@ test(() => { }, "Basic (non-zero)"); test(() => { + const argument = { "element": "anyfunc", "initial": 0 }; + const table = new WebAssembly.Table(argument, {}); + assert_Table(table, { "length": 0 }); +}, "Stray argument"); + +test(() => { const proxy = new Proxy({}, { has(o, x) { assert_unreached(`Should not call [[HasProperty]] with ${x}`); |