Keep XMP file buffers in native state and release them at the file run boundary. Count registered namespaces and expanded metadata against the heap limit. Reset marked readers after updates and allow failed library setup to retry.
A list counts how many times a script replaced its items, so a choice queued
against an item a handler removed and added again with the same text is not
replayed against the new item. The items array stays kept from collection
while the count's slot reserves room.
A resource string's characters size edit fields and static text, a list's items must be an array, a listener added again runs in a later dispatch only, a close asked for while the dialog is described closes it, a list selection a getter changes is read again, and Escape during a handler cancels the dialog the run waits at next. The thrown error of a failed host call stays kept while the failure callback runs.
The statics' constructor check now treats an arrow function, a method
and a function bound to one as non-constructors, as new does, so
Promise.resolve.call(() => {}, 1) throws a TypeError. The test262 line
in docs/target-app-parity.md now gives the count on current main: 440
of 538 runs.
Realm::add_es2015 no longer turns on Options::es2015, which now also
selects the ECMAScript 2015 syntax. A realm made without the option gets
Promise and still reads ES5.1 until set_es2015 changes it; the engine
calls set_es2015 for each run before it adds Promise.
- `toString()` on a page item list from a closed or replaced document throws
"Stale document", as its other members do.
- A member a host class declares unavailable is not reported by
`hasOwnProperty` or `propertyIsEnumerable` even when a parent class has it.
- Assigning a name an object of a host class inherits from a prototype no
longer calls the class's indexer, so a non-strict assignment is ignored
instead of throwing.
- Assigning a selection checks repeated objects with a set instead of
scanning the list for each object.
- The script report test throws a text that names `Window` for the case of
an error the script wrote itself.
- The dialog's body only reports its events, typed texts and whether a
field has the focus; the dialog applies the last run's report after the
container, and Enter outside a field comes from take_submit after it.
- The controls scroll in a craft Stack, and a panel is a GroupBox.
- remove() on a container walks the removed control's subtree and checks
the heap before its first change, so a run that ends in it leaves the
container, the dialog's counts and the control as they were.
- The dialog's accessibility tests draw through part_frame.
With ECMAScript 2015, Function.prototype.bind gave every bound function
Function.prototype as its prototype, so a bound generator function's
constructor was Function instead of GeneratorFunction. The bound function
now takes the target's prototype, read before length and name (ECMA-262
2020 section 9.4.1.3). Without the option it keeps Function.prototype,
as ES5 section 15.3.4.5 specifies.
Without defaultElement or cancelElement, the dialog's default and cancel
buttons are the first enabled and visible buttons named or titled OK and
Cancel, so Enter and Escape click a button the dialog takes a click on.
- An answer step with an empty control matches only an unnamed control whose
text is empty, not the first unnamed control.
- add() and add("item") on an object made to look like a container or list
throw a TypeError and charge nothing to the dialog's limits.
- A new list's initial items are read through ordinary property access, so an
index getter gives its value.
- findElement() keeps the controls it has still to look at rooted while a
name getter runs, and skips a control the element no longer holds.
- A close() that onClose calls before it returns false belongs to the close it
refuses; the dialog waits for the next event.
- show() throws for an edittext with noecho before the dialog opens.
- show() reads the dialog again when a getter adds or removes a control after
the controls were read, and throws when it changes again.
- An edit field takes at most 32,768 characters while it is typed.
Since #9138, spread steps the array's iterator, so spreading a long
array ends at the fuel limit instead of an early RangeError. Three
tests in es2015_tests.rs still expected the by-index RangeError and
failed:
- an_index_setter_without_a_getter_does_not_delay_the_spread_s_check
- a_prototype_getter_behind_an_own_element_does_not_delay_the_spread_s_check
- looking_for_index_getters_takes_fuel_for_each_property
The setter and prototype-getter tests now check the fuel limit and that
the setter or getter did not run. The test of the index-getter scan,
which #9138 removed, is deleted.
docs/target-app-parity.md had two ES2015 entries after #9138. The
by-index entry is removed; the entry that describes iterator spread
stays.