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.
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).
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.
The Relink dialog kept only the opening document's uid, so after File ›
Revert replaced that document's content, OK relinked the restored objects
that have the same ids. The dialog now keeps the document's revert count
as well, and OK in a reverted document relinks nothing, records no undo
step and shows "The document was reverted. Reopen this dialog to
continue." in the status line, as Transform and the style dialogs do.
The X, Y, Length and Angle fields ran addon.pathtools.setAnchor with each
value as it was typed, outside any undo scope, so Escape left the anchor
edited and an angle edit could leave one undo step per keystroke. Each
field's gesture now runs in one undo scope (EditPath::Scope): Enter keeps
the edit as one undo step, and Escape restores the anchor with no step.
While an Angle edit runs, the field shows the handle's angle in the typed
value's turn, so a typed 200 is not read back as -160, which the field
took as a change made by the app and ended the edit with it kept.
Points per segment takes the value its field holds after its events, so a
canceled edit leaves the count Add Points uses as it was.