[JSC] JSPromise should not propagate TerminatedExecutionError
Created attachment 418077 [details] Patch
<rdar://problem/72929399>
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].