Record CreateVariable instructions in the coordinate scope that matches their runtime environment mode. Lexical variables still use the current lexical scope. Var bindings use the generator's var environment anchor. Add coverage for an Annex B block function in a function with default parameters and a body lexical environment. This catches cases where the var binding is recorded in the parameter scope. A later call could read the wrong environment slot. |
||
|---|---|---|
| .. | ||
| expected | ||
| input | ||
| output | ||