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.
Created attachment 425885 [details] proposed patch.
Comment on attachment 425885 [details] proposed patch. r=me
Comment on attachment 425885 [details] proposed patch. Thanks for the review. Landing now.
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].
<rdar://problem/76605985>