Bug 248159

Summary: An error in FinalizationRegistry's callback isn't reported properly
Product: WebKit Reporter: Alexey Shvayka <ashvayka>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Minor    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

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
Alexey Shvayka
Comment 1 2022-11-21 12:27:19 PST
Note You need to log in before you can comment on or make changes to this bug.