mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
- 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.