mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 18:32:23 +00:00
- Spreading an array checks the room in the result as each element is read, so a getter that shrinks an array of length 4294967295 gives the elements it reads. An array no getter reads, and any other object, is still checked against its length when spread begins. - Spread counts each element's index name, and each character of a string, against the heap as it reads them. - A function with default or rest parameters checks the heap again before its body's environment and declarations are made, since the parameters' values may have used the room the call reserved. - Without the ES2015 option, a function that eval code declares on the global object closes over the global scope, so it sees the scripts' `let` and `const` names, as functions of global code do. - With the ES2015 option, a global `var` whose name the global object only inherits gets its own property. - The test262 ES2015 subset runs a test whose source does not tokenize, so the error counts as a failure instead of a skip.