Bug 210715

Summary: Fix missing exception checks and handling in JSC APIs.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: fpizlo, keith_miller, msaboff, rmorisset, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=210725
Attachments:
Description Flags
proposed patch.
none
proposed patch. saam: review+

Description Mark Lam 2020-04-19 01:03:57 PDT
<rdar://problem/61599658>
Comment 1 Mark Lam 2020-04-19 01:08:58 PDT
Created attachment 396897 [details]
proposed patch.
Comment 2 Mark Lam 2020-04-19 02:15:04 PDT
Comment on attachment 396897 [details]
proposed patch.

Need a bit more work.  New patch coming.
Comment 3 Mark Lam 2020-04-19 11:56:52 PDT
Created attachment 396920 [details]
proposed patch.
Comment 4 Saam Barati 2020-04-19 13:44:38 PDT
Comment on attachment 396920 [details]
proposed patch.

Can you add tests for all this?
Comment 5 Mark Lam 2020-04-19 14:09:37 PDT
(In reply to Saam Barati from comment #4)
> Comment on attachment 396920 [details]
> proposed patch.
> 
> Can you add tests for all this?

I already tried but am not able to.  It was trickier than it looked on the surface.  The result keep coming back as undefined when an exception is thrown.  I filed https://bugs.webkit.org/show_bug.cgi?id=210725 to investigate this later.
Comment 6 Mark Lam 2020-04-19 14:18:52 PDT
Thanks for the review.  Landed in r260343: <http://trac.webkit.org/r260343>.