| Summary: | An error in FinalizationRegistry's callback isn't reported properly | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Shvayka <ashvayka> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Minor | ||
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
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 |
const fooError = new Error("foo"); const registry = new FinalizationRegistry(() => { throw fooError; }); window.addEventListener("error", event => { console.assert(event.error == fooError); // => fails });