diff --git a/test/js-api/memory/constructor.any.js b/test/js-api/memory/constructor.any.js index b4d036a3..aecefa86 100644 --- a/test/js-api/memory/constructor.any.js +++ b/test/js-api/memory/constructor.any.js @@ -96,7 +96,18 @@ test(() => { assert_unreached(`Should not call [[HasProperty]] with ${x}`); }, get(o, x) { - return 0; + // Due to the requirement not to supply both minimum and initial, we need to ignore one of them. + switch (x) { + case "shared": + return false; + case "initial": + case "maximum": + return 0; + case "address": + return "i32"; + default: + return undefined; + } }, }); new WebAssembly.Memory(proxy);