mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
A return, or a break or continue to an outer statement, now closes a for-of loop's iterator after the loop's protected range. An exception from the iterator's return method reaches the catch clause around the loop instead of stopping the run with an internal error. Inner iterators are closed first, and a throwing inner close still closes the outer iterators. A hole in an array pattern steps the iterator without reading the result's value. A var pattern resolves each name before its value is read. A block function named like a destructured catch parameter is no longer also made a var (ECMA-262 11th edition sections B.3.3 and B.3.5). Throwing an exception on after an iterator is closed reads a finally block's mark only from the stack slot that holds the exception. Object patterns forget their shorthand defaults in one ordered pass over the markers inside the pattern, instead of comparing every marker in the script with every default in the pattern. docs/mcp.md says that a loop left early calls return only when the iterator has one and that an iterator whose next() throws is not closed, and that an engine's first run decides its built-ins while each run's script decides its syntax. docs/target-app-parity.md says the same.