new Map, new Set, new WeakMap and new WeakSet read their argument by
index (an array, a string or an object with a length), so a generator,
a Map, a Set or any other iterable was a TypeError, and an array whose
@@iterator was replaced was still read by index. They now read it
through GetIterator and close the iterator when adding an entry throws
(ECMAScript 2015, sections 23.1.1.1, 23.2.1.1, 23.3.1.1 and 23.4.1.1).
A Map or WeakMap entry that is not an object is a TypeError.
The typed array constructors and %TypedArray%.from read a source with
an @@iterator method through its iterator to the end before mapping
it, and any other source as an array-like object (sections 22.2.1.4
and 22.2.2.1).
Map.prototype[@@iterator] is entries, Set.prototype[@@iterator] is
values, %TypedArray%.prototype[@@iterator] is values, and the Map, Set
and array iterators inherit %IteratorPrototype%, so for-of and spread
walk them.
Changed behavior: an array-like object without @@iterator passed to
new Set or new Map is now a TypeError, and Uint8Array.from([1, 1], f)
with an f that changes the array maps the values read before f ran.
The params text and docs/mcp.md now say that a move by 0, 0 changes only
the anchors it makes corners, so a live shape whose listed anchors need no
change stays live, and one with an anchor made a corner becomes a plain
path.
Tags still returns undefined for a number that is not an array index and does
not look it up by name, so the progress line names only the two collections
that do, and describes the key as the text JavaScript writes for a number that
is not an array index. The script guide now says that assigning to such a name
is ignored outside strict mode and throws a TypeError in strict mode code or
with #strict on, instead of Not found.
In a .js script, `function F() { return eval("new.target"); } new F()`
threw a SyntaxError: eval code was always parsed as if it were at the
top of a script, where `new.target` is not allowed (ECMA-262 2015
section 18.2.1.1).
A function that calls eval now keeps its new.target in the hidden
binding arrow functions already use, also when it was compiled as ES5.1.
A direct eval looks that binding up through the caller's scopes (one
unit of fuel per scope); when it finds one, the eval code may use
`new.target` and reads that value. At the top of a script, in an arrow
function there, and through an indirect eval it stays a SyntaxError.
`super` in eval code is still not supported.
A test in es2015_tests.rs covers plain, strict, arrow, nested-eval and
class-constructor callers and the three SyntaxError cases; it fails
without the change. Follows #9094.
Main now reads the editing copy decoded as its streams are read
(#9922: ai_alone_decoded, ai_layers_alone_decoded, AiLayers::decoded)
and renamed the text document's patterns to paints (#9782:
text_patterns, Texts::with_paints). The decoded entry points take the
PDF part's widths as the ones they wrap did, AiLayers::decode goes
through AiLayers::decoded, and the text document still takes the widths
when it is first read, before its paints. The docs keep both sides'
entries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Fold Lines panel's Fold Angle field ran addon.packaging.setFoldAngle
with each value as it was typed, so Escape left the typed angle on the
selected lines. The field's edits now run in one undo scope
(EditPath::Scope, as the Parametric Shape panel does): Enter keeps the
angle as one undo step, and Escape restores the lines and leaves no
undo step.
A target circle dropped on the Layers panel's Delete Selection button
reduces its row's item to a basic appearance again. The button accepted
only dragged rows, so the appearance branch of the footer's drop handling
never ran and the drop did nothing. Delete Selection now also accepts an
appearance dragged from the same document and contents.
New panel tests cover the target circle's drop filter (another row's
appearance moves or, with Alt, copies; its own row's appearance, one from
another document, a paint and dragged art are refused) and the trash
footer's (an appearance from the same document is reduced to basic and the
row stays; one from another document, a paint and dragged art are refused,
and Create New Layer refuses an appearance).
The test counter in RingFinder::reach now counts one entry per read in the compaction loop. docs/three-d.md says that past the limit a face that can go next still goes, and the first face left by depth goes next only when none can.
docs/revolve.md now states that the ring-search lists are made only when the steps left cover a quarter of the recorded pairs, and that without them the first face left by depth goes next.
Each preview runs on the document as the interaction began, and spine edits
pin the spine from that document (live::pin_spine). Shift now measures the
45 degree steps from that anchor, so the handles the command writes stay on
the steps after a previewed move. docs/mcp.md says when pointer_gesture's
Shift moves the anchor and when it constrains the handles.
main draws the Artboards panel with the shared page list, whose list
fills the panel above its footer. The test now drives that panel
through the panel harness: in a 300 pt and a 700 pt panel the New
Artboard button ends inside the panel at its bottom and follows its
height, and with 36 artboards the last row lies below the footer.
The ui-parity and target-app-parity rows describe the list as it is
drawn now, and a stray tab in the test name is fixed.