Skip to content

Wrong scope of top level bindings #1743

@hyf0

Description

@hyf0

Reproduction link or steps

.

What is expected?

.

What is actually happening?

---- test_tests__esbuild__default__require_without_call_inside_try__config_json stdout ----
Input: /Users/hyf/Documents/gh/rolldown/crates/rolldown/tests/esbuild/default/require_without_call_inside_try/_config.json
thread 'test_tests__esbuild__default__require_without_call_inside_try__config_json' panicked at crates/rolldown_testing/src/case/fixture.rs:163:29:
called `Result::unwrap()` on an `Err` value: Symbol ("aliasedRequire", SymbolId(1), 1) is declared in the top-level scope but doesn't get scanned by the scanner
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- test_tests__esbuild__default__var_relocating_bundle__config_json stdout ----
Input: /Users/hyf/Documents/gh/rolldown/crates/rolldown/tests/esbuild/default/var_relocating_bundle/_config.json
thread 'test_tests__esbuild__default__var_relocating_bundle__config_json' panicked at crates/rolldown_testing/src/case/fixture.rs:163:29:
called `Result::unwrap()` on an `Err` value: Symbol ("a", SymbolId(1), 1) is declared in the top-level scope but doesn't get scanned by the scanner

---- test_tests__esbuild__packagejson__test_package_json_browser_map_avoid_missing__config_json stdout ----
Input: /Users/hyf/Documents/gh/rolldown/crates/rolldown/tests/esbuild/packagejson/test_package_json_browser_map_avoid_missing/_config.json
thread 'test_tests__esbuild__packagejson__test_package_json_browser_map_avoid_missing__config_json' panicked at crates/rolldown_testing/src/case/fixture.rs:163:29:
called `Result::unwrap()` on an `Err` value: Symbol ("index", SymbolId(1), 1) is declared in the top-level scope but doesn't get scanned by the scanner


failures:
    test_tests__esbuild__default__require_without_call_inside_try__config_json
    test_tests__esbuild__default__var_relocating_bundle__config_json
    test_tests__esbuild__packagejson__test_package_json_browser_map_avoid_missing__config_json

System Info

.

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions