Describe the bug
Crash in Function("if (true) function f() {}"); when run with --strict
To Reproduce
$ ./boa --strict -e 'Function("if (true) function f() {}");'
The application panicked (crashed).
Message: binding must exist
Location: core/engine/src/bytecompiler/declarations.rs:1204
Build environment (please complete the following information):
- OS: Linux
- Version: 352ec3d
- Target triple: aarch64-unknown-linux-gnu
- Rustc version: rustc 1.94.1 (e408947bf 2026-03-25)
Describe the bug
Crash in
Function("if (true) function f() {}");when run with--strictTo Reproduce
$ ./boa --strict -e 'Function("if (true) function f() {}");' The application panicked (crashed). Message: binding must exist Location: core/engine/src/bytecompiler/declarations.rs:1204Build environment (please complete the following information):