Skip to content

Commit 4162cc8

Browse files
authored
[wasm-split] Change placeholder namespace in fuzz_shell.js (#7989)
After #7975, the default namespace for the two-way split changed to `placeholder.deferred`.
1 parent 051f392 commit 4162cc8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/fuzz_shell.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,14 @@ function wrapExportForJSPI(value) {
414414
return value;
415415
}
416416

417-
// If a second binary will be linked in then set up the imports for
418-
// placeholders. Any import like (import "placeholder" "0" (func .. will be
419-
// provided by the secondary module, and must be called using an indirection.
417+
// If we are fuzzing a split module, a secondary binary will have imports for
418+
// placeholders, whose module name defaults to 'placeholder.deferred' for the
419+
// two-module split. Any import like
420+
// (import "placeholder.deferred" "0" (func ..))
421+
// will be provided by the secondary module, and must be called using an
422+
// indirection.
420423
if (secondBinary) {
421-
imports['placeholder'] = new Proxy({}, {
424+
imports['placeholder.deferred'] = new Proxy({}, {
422425
get(target, prop, receiver) {
423426
// Return a function that throws. We could do an indirect call using the
424427
// exported table, but as we immediately link in the secondary module,

0 commit comments

Comments
 (0)