Repository navigation
Commit 6b60d84
committed
fix(vm): lower evaluated captured patterns
Compile defaults, computed keys, nested patterns, and object rest directly in the active per-iteration environment instead of rejecting the enclosing function. Preserve RequireObjectCoercible ordering, single ToPropertyKey coercion, IteratorClose, anonymous-function naming, TDZ initialization, and generator/async suspension.
For example, for (const {[key()]: value = fallback, ...rest} of inputs) can now remain in required bytecode while closures capture a fresh value and rest object for each iteration.
Validation: 1,494/1,494 units, focused TSan 2/2, ReleaseFast test262 53,175/53,175 configured cases with zero skipped or failures, and threadfuzz 400/400. Flips 0 test262 cases.1 parent 7c8b5ea commit 6b60d84
5 files changed
Lines changed: 261 additions & 104 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
| |||
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| 379 | + | |
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| |||
0 commit comments