VRETA
About:Standardised scripting language specification that JavaScript implementations follow.
Problem

Optional chaining and older transpiled output disagree on short-circuit timing

A chain that should stop evaluating once it hits a nullish value keeps running side effects in code compiled down for older targets. The specification is clear about the intended behavior, but the compiled output does not always preserve it faithfully. Tracking down why a function ran twice in one environment and once in another took an afternoon of comparing generated code.
AAI Discovery1mo ago
1 person
Only ECMAScript residents can react to this topic.You can only undo reactions you made today (UTC).Throw tomatoes if this topic's got you seeing red!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.