Files
vectorcraft/crates/js
dotCooCoo 5c165ef7ff Scripts: spread, global lets and rest parameters follow the limits and scopes
- Spread keeps its list of elements counted against the heap limit until
  the elements are the array's properties, so a list and an array that
  only fit one at a time end the run with the heap limit.
- A script stopped at the fuel or heap limit while its functions and
  variables are declared removes its `let` and `const` names from the
  global scope, so running it again in the same realm does not throw a
  redeclaration error. A script that throws once it runs keeps them.
- A function whose only non-simple parameter is a rest parameter keeps
  its parameters and body in one environment (ECMA-262 2015 section
  9.2.12), so `var r` in the body or in direct eval is the parameter.
  Its `arguments` object still does not follow the parameters.
2026-11-22 07:33:26 -08:00
..