WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
248159
An error in FinalizationRegistry's callback isn't reported properly
https://bugs.webkit.org/show_bug.cgi?id=248159
Summary
An error in FinalizationRegistry's callback isn't reported properly
Alexey Shvayka
Reported
2022-11-20 16:43:34 PST
const fooError = new Error("foo"); const registry = new FinalizationRegistry(() => { throw fooError; }); window.addEventListener("error", event => { console.assert(event.error == fooError); // => fails });
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Shvayka
Comment 1
2022-11-21 12:27:19 PST
False alarm: I was testing via file:/// protocol. This is covered by
https://wpt.fyi/results/js/builtins/weakrefs/finalizationregistry-cleanupCallback-throws-onerror-interaction.optional.window.html
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug