From dbf141aef987e097caa26b112eaf803c48456c2e Mon Sep 17 00:00:00 2001 From: Clemens Backes Date: Mon, 6 Oct 2025 14:48:38 +0200 Subject: [PATCH] Fix proxy used in memory constructor test Another targeted fix to make this file pass in V8. This was fixed upstream already, so alternatively we could rebase the whole repository. --- test/js-api/memory/constructor.any.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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);