Bug 235082

Summary: [JSC] Fix kind of error thrown by wasm module creation
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch msaboff: review+

Description Yusuke Suzuki 2022-01-11 14:02:11 PST
[JSC] Fix kind of error thrown by wasm module creation
Comment 1 Yusuke Suzuki 2022-01-11 14:03:07 PST
Created attachment 448876 [details]
Patch
Comment 2 Michael Saboff 2022-01-11 14:05:17 PST
Comment on attachment 448876 [details]
Patch

r=me
Comment 3 Yusuke Suzuki 2022-01-11 14:08:21 PST
Comment on attachment 448876 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=448876&action=review

> Source/JavaScriptCore/wasm/js/JSWebAssemblyModule.cpp:58
>      if (UNLIKELY(!error)) {

I'll also remove RETURN_IF_EXCEPTION thing in L49 since this is not necessary. createJSWebAssemblyCompileError will not throw.
So, the code should be aligned to L61.
Comment 4 Yusuke Suzuki 2022-01-11 15:41:37 PST
Committed r287901 (?): <https://commits.webkit.org/r287901>
Comment 5 Radar WebKit Bug Importer 2022-01-11 15:42:16 PST
<rdar://problem/87423396>