Summary: | [JSC] JSPromise should not propagate TerminatedExecutionError | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||||
Component: | New Bugs | Assignee: | Yusuke Suzuki <ysuzuki> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=220868 | ||||||||
Attachments: |
|
Description
Yusuke Suzuki
2021-01-21 13:11:26 PST
Created attachment 418077 [details]
Patch
r=me Created attachment 418091 [details]
Patch
Comment on attachment 418091 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=418091&action=review > Source/JavaScriptCore/API/JSAPIGlobalObject.mm:167 > + // FIXME: We could have error since any JS call can throw stack-overflow errors. > + // https://bugs.webkit.org/show_bug.cgi?id=203402 > + promise->reject(globalObject, createError(globalObject, result.error())); Shouldn't you only reject the promise if an exception actually exists? Comment on attachment 418091 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=418091&action=review r=me >> Source/JavaScriptCore/API/JSAPIGlobalObject.mm:167 >> + promise->reject(globalObject, createError(globalObject, result.error())); > > Shouldn't you only reject the promise if an exception actually exists? Sorry, I misread this. Ignore me. Comment on attachment 418091 [details]
Patch
Thanks!
Committed r271731: <https://trac.webkit.org/changeset/271731> All reviewed patches have been landed. Closing bug and clearing flags on attachment 418091 [details]. |