-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOMException
should have [[ErrorData]]
internal slot
#56497
Comments
petamoriken
changed the title
DONException should have
Jan 7, 2025
[[ErrorData]]
internal slotDONException
should have [[ErrorData]]
internal slot
A simple way to do this might be making
|
ljharb
changed the title
Jan 7, 2025
DONException
should have [[ErrorData]]
internal slotDOMException
should have [[ErrorData]]
internal slot
I tried to implement inheriting Object.getPrototypeOf(DOMException) === Function.prototype; // true |
@petamoriken indeed you'd have to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
No response
Platform
Subsystem
No response
What steps will reproduce the bug?
This bug has not surfaced yet, but when V8 implements
Error.isError
, it should returntrue
forDOMException
.How often does it reproduce? Is there a required condition?
Not yet.
What is the expected behavior? Why is that the expected behavior?
Due to a change in Web IDL.
whatwg/webidl#1421
What do you see instead?
Not yet.
Additional information
This issue can be resolved by using
Reflect.construct
.denoland/deno#27342
As a side effect,
util.types.isNativeError
will returntrue
as well.The text was updated successfully, but these errors were encountered: