File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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.
420423if ( 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,
You can’t perform that action at this time.
0 commit comments