%TypedArray%.prototype.toLocaleString invokes each element's method
(Invoke, section 7.3.18), so a getter for toLocaleString on
Number.prototype now gets the number as this, as the call already does.
Array.prototype.toLocaleString keeps the element's object for both.
%TypedArray%.from and of make their result with AllocateTypedArray in
the 6th edition (sections 22.2.2.1.1, 22.2.2.2 and 22.2.1.2.1), which
looks for a typed array constructor on the receiver's prototype chain
and throws a TypeError when it finds none. A function that returns a
typed array, or a bound typed array constructor, is refused again
instead of being called. Later editions call the receiver through
TypedArrayCreate.
- A collection that removes the holes of a Map or Set releases the room
its entries and index held, and a WeakMap or WeakSet whose table has
far more room than entries after pruning releases the extra room, so
the heap estimate covers what the tables still hold.
- %TypedArray%.from throws a TypeError for a receiver that is not a
constructor before it reads the source (section 22.2.2.1 step 2).
- %TypedArray%.from and of make their result with any constructor they
are called on (TypedArrayCreate, section 22.2.4.6): the result must be
a typed array with room for every element, or the call is a TypeError.
- %TypedArray%.prototype.toLocaleString calls each element's method on
the number itself (section 22.2.3.27); Array.prototype.toLocaleString
still calls it on the element's object.
- ArrayBuffer.prototype.slice and the typed array map, filter, slice and
subarray read the receiver's constructor where SpeciesConstructor does
(section 7.3.20): a getter's error propagates, and a value that is
neither undefined nor an object is a TypeError. filter reads it before
its callback runs.
- sort charges a unit of fuel for each element it reads and each it
writes back, before it starts.
- set between typed arrays on different buffers writes each element as
it reads it, without holding a copy of the source.
- The binary data module comment says a constructor reads a primitive
string as a length and from reads it by code point, and a prototype
test puts its value at the index it checks.
A realm with Options::es2015 now has Map, Set, WeakMap and WeakSet, and
ArrayBuffer, DataView and the nine typed arrays from Int8Array to
Float64Array with %TypedArray%.from, of and the prototype methods
(ECMA-262 6th edition, sections 22.2 to 24.2). A realm without the
option, the ExtendScript realm included, has none of these names.
- Map and Set compare keys with SameValueZero and keep insertion order.
forEach and iterators skip entries deleted before they reach them and
visit entries added during the walk; the collector removes holes and
moves live iterators.
- WeakMap and WeakSet hold their keys weakly. The collector marks a
WeakMap value only once its key is reachable another way and drops the
entries of unreachable keys, also when a value refers to its key.
- Typed arrays store elements little-endian; DataView is big-endian
unless littleEndian is true. Numeric property names are elements or
nothing, with the element descriptors of later editions. Copies to the
same element type keep every bit.
- An ArrayBuffer longer than 2^32 - 1 bytes or than the heap limit is a
RangeError before anything is allocated, and every element a method
visits takes fuel.
- Until the language has iterators, the collection constructors and
%TypedArray%.from read an array, a string by code point or an object
with a length, by index. A typed array constructor reads an array or
an object with a length the same way, and converts a first argument
that is not an object to a length.
- The %TypedArray%.prototype methods that share an Array method use the
element count, and an Array method called on a typed array reads its
length property. Array methods visit every element of a typed array
longer than 4,096.
- Check Script counts new of these constructors as the language's.
test262 runs the Map, Set, WeakMap, WeakSet, ArrayBuffer, DataView,
TypedArray and TypedArrayConstructors folders in ES2015 realms.
Docs: docs/mcp.md, docs/target-app-parity.md.
A color a library pattern's art brings now skips the library's numbered
names while the pattern is imported, instead of being renamed after the
import. The rename also rewrote every other paint in the document linked
to the name the import first gave, such as art still linked to a deleted
"Ink 2", so adding the pattern changed that art. Now the names are held
with placeholder swatches during the import and removed afterwards, and
links that were already in the document stay as they were.
A pattern whose art brings both "Ink" and the library's "Ink 2" keeps the
library's "Ink 2" under its own name when the document gives "Ink"
another color, and the library's "Ink" takes the next free name. A library
pattern with a numbered name, such as "Tiles 2", keeps that name when the
document does not use it.
A global or spot color that a library pattern's art brings under a
numbered name no longer takes a name the library gives another swatch.
Before, adding a pattern whose art uses "Ink" to a document with another
"Ink" brought the color as "Ink 2" even when the library has its own
"Ink 2"; adding that library swatch next then came in as "Ink 2 2". The
brought color now takes the next free name the library does not use
("Ink 3"), and every paint linked to it follows the new name, so adding
the library's "Ink 2" next adds it under its own name and adding both
again adds nothing.
A color the pattern's art brings or takes is the color a library tint
or gradient links to only when it has the library color's paint and its
process, global or spot kind, as for the other lookups in the same add.
The test a_numbered_copy_named_like_another_library_color_is_found now
makes the blue "Ink 2" itself, as an earlier version's pattern add left
it, since a pattern add no longer gives that name.
A press keeps the pointer and the snapped point for the end of the piece it adds. When Alt
changes the action during the press, the end goes through the protractor's tick again for the
new action, so a continuous arc that snapped to a tick and becomes a sharp-corner arc ends at the
pointer, and a piece that becomes a continuous arc goes onto the tick, without waiting for the
next drag. This also covers a press that has not dragged.