`call_script_fn` looked names up in the module body scope, but a `let`/`fn` that shadows a name already in scope opens a child scope, and everything the script defines after it lands there, invisible from the module scope. The Splash prefix's own `let fs` / `let host` can be that shadow, so app hooks never resolved. * The VM records the scope a root frame ended in (`ScriptBody::end_scope`) * Splash looks hooks up there, falling back to the module scope |
||
|---|---|---|
| .. | ||
| allocation_limit.rs | ||
| auto_close_eof.rs | ||
| extra_arg_typecheck.rs | ||
| fn_ref_callback.rs | ||
| hook_scope.rs | ||
| json_negative_numbers.rs | ||
| math_aot.rs | ||
| math_aot_fuzz.rs | ||
| newline_call.rs | ||
| on_render_emission.rs | ||
| parse_error_capture.rs | ||
| reload_defaults.rs | ||
| short_circuit_args.rs | ||