[Webkit-unassigned] [Bug 174216] New: Update DOMException to the latest spec
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 6 14:12:22 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=174216
Bug ID: 174216
Summary: Update DOMException to the latest spec
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Bindings
Assignee: webkit-unassigned at lists.webkit.org
Reporter: d at domenic.me
CC: cdumez at apple.com
For years the spec for DOMException has not matched what was implemented. We recently fixed this by converging on the majority behavior, in https://github.com/heycam/webidl/pull/378. Failing-in-Safari tests are available at:
- http://w3c-test.org/WebIDL/ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.html
- http://w3c-test.org/WebIDL/ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.html
- http://w3c-test.org/WebIDL/ecmascript-binding/es-exceptions/exceptions.html
The spec is at:
- https://heycam.github.io/webidl/#idl-DOMException
- https://heycam.github.io/webidl/#idl-DOMException
The following changes appear to be necessary to conform to the current spec:
- Use getters on the prototype instead of own data properties for message/code/name.
- Removing the toString() method and letting the default Error.prototype.toString() show through.
- ("should", not "must") capturing stack traces for DOMExceptions, like for other Error classes.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170706/94321a94/attachment-0001.html>
More information about the webkit-unassigned
mailing list