aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/wasm/jsapi/memory/constructor.any.js
diff options
context:
space:
mode:
authorWPT Sync Bot <josh+wptsync@joshmatthews.net>2018-09-23 21:29:48 -0400
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2018-09-23 23:26:42 -0400
commit20a08918d9abaf9c648052252f821e52bd6d4af6 (patch)
treed5ed86de77e1b7990cbf26e6ddf7dee911929cff /tests/wpt/web-platform-tests/wasm/jsapi/memory/constructor.any.js
parent647796ede66ad84acf6239d8b556ee3735bfc6a6 (diff)
downloadservo-20a08918d9abaf9c648052252f821e52bd6d4af6.tar.gz
servo-20a08918d9abaf9c648052252f821e52bd6d4af6.zip
Update web-platform-tests to revision 3d117ae1266e6bd039a3a1ab92b27e82c3ccc92d
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.js4
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}`);