From e90e4999dfdddbac8da87daac7ef835536e3e777 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Thu, 23 Oct 2025 05:41:18 +0000 Subject: [PATCH] [wasm-split] Change placeholder namespace in fuzz_shell.js After #7975, the default namespace for the two-way split changed to `placeholder.deferred`. --- scripts/fuzz_shell.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/fuzz_shell.js b/scripts/fuzz_shell.js index bfdbd44e632..47d73a51248 100644 --- a/scripts/fuzz_shell.js +++ b/scripts/fuzz_shell.js @@ -414,11 +414,14 @@ function wrapExportForJSPI(value) { return value; } -// If a second binary will be linked in then set up the imports for -// placeholders. Any import like (import "placeholder" "0" (func .. will be -// provided by the secondary module, and must be called using an indirection. +// If we are fuzzing a split module, a secondary binary will have imports for +// placeholders, whose module name defaults to 'placeholder.deferred' for the +// two-module split. Any import like +// (import "placeholder.deferred" "0" (func ..)) +// will be provided by the secondary module, and must be called using an +// indirection. if (secondBinary) { - imports['placeholder'] = new Proxy({}, { + imports['placeholder.deferred'] = new Proxy({}, { get(target, prop, receiver) { // Return a function that throws. We could do an indirect call using the // exported table, but as we immediately link in the secondary module,