WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
213915
[JSC] Add exception checks in JSStringBuilder and Array#join
https://bugs.webkit.org/show_bug.cgi?id=213915
Summary
[JSC] Add exception checks in JSStringBuilder and Array#join
Yusuke Suzuki
Reported
2020-07-02 19:51:11 PDT
[JSC] Add exception checks in JSStringBuilder and Array#join
Attachments
Patch
(3.75 KB, patch)
2020-07-02 19:53 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(4.27 KB, patch)
2020-07-02 22:42 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2020-07-02 19:53:00 PDT
Created
attachment 403434
[details]
Patch
Yusuke Suzuki
Comment 2
2020-07-02 19:53:02 PDT
<
rdar://problem/64878225
>
Saam Barati
Comment 3
2020-07-02 19:57:23 PDT
Comment on
attachment 403434
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=403434&action=review
> Source/JavaScriptCore/runtime/JSStringJoiner.h:169 > + return;
do we really need this?
Yusuke Suzuki
Comment 4
2020-07-02 20:12:04 PDT
Comment on
attachment 403434
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=403434&action=review
>> Source/JavaScriptCore/runtime/JSStringJoiner.h:169 >> + return; > > do we really need this?
Since we call `scope.release()`, returning here is better I think. Even if we add a new code after this if branch, then it should work well :)
Mark Lam
Comment 5
2020-07-02 20:55:46 PDT
Comment on
attachment 403434
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=403434&action=review
>>> Source/JavaScriptCore/runtime/JSStringJoiner.h:169 >>> + return; >> >> do we really need this? > > Since we call `scope.release()`, returning here is better I think. Even if we add a new code after this if branch, then it should work well :)
Could you have done `RELEASE_AND_RETURN(append(jsString->viewWithUnderlyingString(globalObject)));` instead?
Yusuke Suzuki
Comment 6
2020-07-02 22:35:48 PDT
Comment on
attachment 403434
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=403434&action=review
>>>> Source/JavaScriptCore/runtime/JSStringJoiner.h:169 >>>> + return; >>> >>> do we really need this? >> >> Since we call `scope.release()`, returning here is better I think. Even if we add a new code after this if branch, then it should work well :) > > Could you have done `RELEASE_AND_RETURN(append(jsString->viewWithUnderlyingString(globalObject)));` instead?
Changed.
Yusuke Suzuki
Comment 7
2020-07-02 22:42:17 PDT
Created
attachment 403441
[details]
Patch
EWS
Comment 8
2020-07-03 02:18:50 PDT
Committed
r263889
: <
https://trac.webkit.org/changeset/263889
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 403441
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug