Closed Bug 2042299 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 58397 - Add WPT tests for Error Stack Accessor proposal web platform integration

Categories

(Core :: DOM: Bindings (WebIDL), task, P4)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 58397 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/58397
Details from upstream follow.

Jordan Harband <ljharb@gmail.com> wrote:

Add WPT tests for Error Stack Accessor proposal web platform integration

Add tests for DOMException .stack behavior per the TC39 Error Stack Accessor proposal (https://tc39.es/proposal-error-stack-accessor/) and the WebIDL [[ErrorData]] integration (whatwg/webidl#1421):

  • DOMException instances get .stack as a string via Error.prototype.stack accessor
  • Error.prototype.stack property descriptor has correct accessor attributes
  • Error.prototype.stack getter works on DOMException instances
  • Error.prototype.stack setter (SetterThatIgnoresPrototypeProperties) behavior
  • DOMException.prototype does not have an own stack property

Add tests for structured clone serialization/deserialization of [[Stack]]:

  • structuredClone() preserves .stack on Error and all NativeError subtypes
  • structuredClone() preserves .stack on DOMException (constructed and thrown)
  • Cloned .stack is accessed via the accessor, not as an own property

See https://github.com/tc39/proposal-error-stack-accessor/issues/9 and https://github.com/tc39/proposal-error-stack-accessor/issues/8

Component: web-platform-tests → DOM: Bindings (WebIDL)
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 56 tests and 12 subtests

Status Summary

Firefox

OK : 3[GitHub] 27[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 47[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 19[GitHub] 1053[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 1114[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 8[GitHub] 19[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 22[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR: 6

Chrome

OK : 3
PASS : 12
FAIL : 15
ERROR: 6

Safari

OK : 3
PASS : 12
FAIL : 15
ERROR: 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.