Files
vectorcraft/docs
dotCooCoo 04557f4893 JavaScript: for-of exits close the iterator outside the loop's handler
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.
2026-11-22 12:19:33 -08:00
..
2026-11-20 05:45:14 +07:00
2026-11-19 15:12:20 +07:00