Bug 224490

Summary: Use a JSString for the TerminationException value instead of a Symbol.
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. none

Mark Lam
Reported 2021-04-13 09:57:04 PDT
This makes it convertible to a String for clients that wish to report the exception. Clients, in this case, does not apply to JS code, only C++ code that catches the exception at the outermost point to handle the termination. The TerminationException value is not visible to JS code because the TerminationException cannot be caught. So, this change is transparent to JS code.
Attachments
proposed patch. (1.98 KB, patch)
2021-04-13 11:02 PDT, Mark Lam
no flags
Mark Lam
Comment 1 2021-04-13 11:02:36 PDT
Created attachment 425885 [details] proposed patch.
Yusuke Suzuki
Comment 2 2021-04-13 11:43:25 PDT
Comment on attachment 425885 [details] proposed patch. r=me
Mark Lam
Comment 3 2021-04-13 12:37:33 PDT
Comment on attachment 425885 [details] proposed patch. Thanks for the review. Landing now.
EWS
Comment 4 2021-04-13 12:57:03 PDT
Committed r275902 (236467@main): <https://commits.webkit.org/236467@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 425885 [details].
Radar WebKit Bug Importer
Comment 5 2021-04-13 12:58:15 PDT
Note You need to log in before you can comment on or make changes to this bug.