Bug 205230

Summary: Fix bad exception assertion in ExceptionHelpers.cpp's createError().
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, keith_miller, msaboff, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch. ysuzuki: review+

Mark Lam
Reported 2019-12-13 17:30:16 PST
Attachments
proposed patch. (3.32 KB, patch)
2019-12-13 17:33 PST, Mark Lam
ysuzuki: review+
Mark Lam
Comment 1 2019-12-13 17:33:59 PST
Created attachment 385664 [details] proposed patch.
Yusuke Suzuki
Comment 2 2019-12-13 17:39:17 PST
Comment on attachment 385664 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=385664&action=review r=me with nit. > Source/JavaScriptCore/runtime/ExceptionHelpers.cpp:269 > - EXCEPTION_ASSERT(scope.exception() || !!valueDescription); > - if (!valueDescription) { > + if (scope.exception() || !valueDescription) { Can you add a comment why we are not returning when we have `scope.exception()`?
Mark Lam
Comment 3 2019-12-13 17:41:39 PST
Thanks for the review. (In reply to Yusuke Suzuki from comment #2) > > Source/JavaScriptCore/runtime/ExceptionHelpers.cpp:269 > > - EXCEPTION_ASSERT(scope.exception() || !!valueDescription); > > - if (!valueDescription) { > > + if (scope.exception() || !valueDescription) { > > Can you add a comment why we are not returning when we have > `scope.exception()`? Sure.
Mark Lam
Comment 4 2019-12-13 17:51:44 PST
Note You need to log in before you can comment on or make changes to this bug.