Skip to content

panic: "binding must exist" at declarations.rs:1204 #5331

@ivankra

Description

@ivankra

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions