- AsyncFunction.prototype has Symbol.toStringTag "AsyncFunction",
configurable only.
- await checks the room for the awaited promise's reaction or job and
the suspended frame's bytes before it attaches the reaction, so a
suspension stays within the heap limit.
- An async function's return pops its frame before resolving its
promise, so a then getter on the returned value runs without it.
Returning the function's own promise rejects it at the return.
- Block functions whose variable was not declared are kept in a hash
set, so each block function's lookup takes constant time.
- A shorthand await in an object pattern of an async arrow function's
head is a syntax error, and the head accepts patterns with defaults
such as async ({a = 1}) => a. async({a = 1}) without an arrow is
still a syntax error.
- docs: .jsx files and source strings run with module: true have
Promise and the async syntax; await is an identifier only in script
code.
pathItems.removeAll() throws "cannot delete hidden or locked paths" when
any path is hidden or locked or is inside a hidden or locked object, and
only otherwise "cannot delete objects on a locked artboard". Both
messages end with a colon and up to 20 path ids. docs/mcp.md now says
so in both places that describe removeAll().
The startup scripts run at launch no longer list the print service's
printers, so the first window does not wait on it; a script.startup.run
with any other reason still lists them. A script's print jobs that the
desktop's worker fails to send are shown in the status bar even when a
later line, a later batch that was sent or a startup script's failure
took it, and the startup script's notes stay in the hover.
script.startup.run's params text describes the print wait and the
launch rule.
The bounds getters (position, left, top, width, height and the bounds
arrays) read an item in a document in the back without measuring its type,
while the setters measure it after the switch to that document since
#10538. A script that read t.width and assigned it back could resize the
item, and every geometry assignment switched to the document and back even
when nothing changed.
The getters now measure type not measured yet in a document in the back
for an item that holds type, a symbol instance or a placed document, the
way the switch measures it, and the check is skipped while the document is
unchanged. An assignment equal to the current value of an object without
such content in a document in the back returns without switching
documents, and no undo step is made.
A for-in loop asks only the proxies whose ownKeys trap listed a name for
its descriptor. When a getPrototypeOf trap returned a new proxy of the
same target on each call, the proxy met before each name was not the one
that listed it, so the name was skipped. The loop now records, for each
proxy, the proxy its prototype lookup returned, and a new proxy of that
same target in its place answers for it. Proxies that list nothing are
recorded too, so another proxy of their target does not answer for them,
and the listing proxies stay rooted until the iterator holds them.
Follows #10185.
With Run Startup Scripts on, File › Scripts runs the chosen script
through script.startup.run, and only script.run listed the print
service's printers, so app.printerList and Document.print to a printer
threw "not available here" in the chosen script. script.startup.run now
lists the printers, each queued run takes them as it starts, and a
startup script's print jobs are asked about before the next run starts.
Follows up on #9087.
- A `with` scope reads `Symbol.unscopables` after it finds a name, through
a proxy's `get` trap, and skips the binding when that object's property
for the name is truthy.
- `concat` reads `Symbol.isConcatSpreadable`, through proxy traps; a
defined value decides whether the object is spread.
- `Object.keys` and `Object.getOwnPropertyNames` keep the target's order
through empty-handler proxies.
- `%TypedArray%.from` and `of` construct through a proxy constructor and
check that the result is a typed array long enough.
- `reflect.find` reads the reflection object and its lists with ordinary
[[GetOwnProperty]], so a proxy receiver throws a TypeError without its
getOwnPropertyDescriptor trap running.
- `JSON.stringify` charges each distinct name a replacer array keeps for
the length of the call, instead of reserving bytes for the whole length,
so a long sparse replacer list no longer hits the heap limit.
- A test checks that an outer proxy reads an inner proxy target's
descriptors in its trap's combined order of names and Symbols.
file.print with maxPages flattened every raster effect in the document
before it counted the pages, so a job it then turned away still paid
for rendering each effect. The page count from the artboards now runs
first, on the artboards alone, and raster effects are flattened only
for a job that fits.
Follows up on #9087.
A script that set PrintColorManagementOptions.colorProfileMode to
CUSTOMPROFILE and assigned no name printed with the base settings'
profile, as though no custom profile had been asked for. The job now
throws before anything is written, as it does for an empty name.
Follows up on #9087.
- A for-in loop now records, for each proxy whose ownKeys trap it called,
the positions of the names that proxy returned, and asks a proxy for a
name's descriptor only when that proxy listed the name. A proxy that did
not list a name no longer hides an inherited one, and the proxy that did
is still asked after a prototype change moves it on the chain. The
records keep their proxies reachable and count against the heap limit.
- The check before each name walks own properties object by object, so a
typed array without the element a name gives no longer hides that name
on its prototypes.
- Function.prototype.apply reads the list's length with ToLength in a run
with the ES2015 option, so a negative length gives no arguments; other
runs keep ToUint32.
- Docs: typeof on a revoked proxy does not throw, and a setPrototypeOf
trap that returns true may leave the prototype unchanged.
For an extensible target whose own properties are all configurable, the
check reads each property's descriptor for one unit of fuel and returns
before it looks any name up, so it does not charge for code units. The
paragraph in docs/mcp.md now says which part of the check charges per key
and which part charges per code unit.
With Include Bleed, a .vectorcraft, .ai or EPS row wrote the artboard
already grown by the document's bleed and kept the document's bleed as
well. Opened again, the file had the bleed outside the grown artboard, so
a PDF with the document's bleed came out with it twice: a 3 mm bleed made
a 6 mm one.
These files now hold the grown artboard with a bleed of 0. PDF rows and
Full Document files are unchanged. The params text and docs/mcp.md say so.
Common Tangents… now also does what Smooth Bridge… did (#10465).
- Connect tangents joins the two tangents of each kind into one closed
shape, along the chords between where they touch each path (a point's
two lines make a triangle). `connect` on
`addon.pathtools.commonTangents`.
- With External, the dialog shows Straight and Curved. Straight keeps
the tangent lines; Curved joins the circles along concave arcs, as
Smooth Bridge did, with Radius, Constant Gap, Reach and Keep
Originals, which take input only with Curved. `curved`, `radius`,
`gap`, `reach` and `keepOriginals` on the command; options of the
other mode are an error.
- The Smooth Bridge… menu item is gone. `addon.pathtools.bridge` still
runs for scripts and actions, opens the merged dialog with External
and Curved, and is left out of the command palette and Keyboard
Shortcuts. A palette search for "metaball" or "smooth bridge" finds
Common Tangents.
Docs: docs/mcp.md, docs/ui-parity.md, ROADMAP.
Each corner leg is at most half the side it runs along. An object wider or
taller than the flat limit but with both half-sides under it got a Corner Marks
group with no paths in it. Such an object now gets no corner marks, and a
selection of only such objects is refused with "nothing to mark: the selection
is too small for corner marks" and no undo step. The Rectangle style still
marks it.
Follows up #10148.