Skip to content

Apply defines to computed string-literal member accesses - #33062

Closed
robobun wants to merge 3 commits into
mainfrom
farm/cb2baa7b/define-computed-member-access
Closed

robobun wants to merge 3 commits into
mainfrom
farm/cb2baa7b/define-computed-member-access

ci: retrigger

bd6dc1f
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Jun 29, 2026 in 31m 22s

Code review found 1 important issue

Found 2 candidates, confirmed 2. See review comments for details.

Details

Severity Count
🔴 Important 1
🟡 Nit 0
🟣 Pre-existing 0
Severity File:Line Issue
🔴 Important src/js_parser/visit/visit_expr.rs:963-971 --drop flag leaks into nested call inside computed index

Annotations

Check failure on line 971 in src/js_parser/visit/visit_expr.rs

See this annotation in the file changed.

@claude claude / Claude Code Review

--drop flag leaks into nested call inside computed index

Propagating `property_access_for_method_call_maybe_should_replace_with_undefined` into the `e_index` target visit lets the target set the parser-global `p.method_call_must_be_replaced_with_undefined`, but `e_index` then visits the *index* expression at line 1053 with that flag still live. If the index contains a call — e.g. `console[getLevel()]("msg")` with `--drop=console` — the inner `e_call` consumes the flag and replaces itself with `undefined`, while the outer call survives, emitting `conso