Resolve strict global-looking assignment targets before evaluating their right-hand side instead of lowering them directly to SetGlobal. Preserve the original unresolvable reference for PutValue so a RHS-created global cannot hide the ReferenceError. Add a runtime test for that ordering and update the bytecode expectation for a strict top-level assignment that now uses SetResolvedBinding. |
||
|---|---|---|
| .. | ||
| expected | ||
| input | ||
| output | ||