WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
204264
[JSC] DFG strength reduction should define "groups" for RegExp constant-folded result
https://bugs.webkit.org/show_bug.cgi?id=204264
Summary
[JSC] DFG strength reduction should define "groups" for RegExp constant-folde...
Yusuke Suzuki
Reported
2019-11-15 16:59:19 PST
...
Attachments
Patch
(5.10 KB, patch)
2019-11-15 17:12 PST
,
Yusuke Suzuki
msaboff
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2019-11-15 16:59:57 PST
After
https://bugs.webkit.org/show_bug.cgi?id=204067
, we are always defining "groups" property, but DFG strength reduction does not agree.
Yusuke Suzuki
Comment 2
2019-11-15 17:12:16 PST
Created
attachment 383671
[details]
Patch
Michael Saboff
Comment 3
2019-11-15 17:22:56 PST
Comment on
attachment 383671
[details]
Patch r=me. Always creating "groups" including creating an undefined "groups" for str.match() results where there aren't any named capture groups is compliant with the ECMA-262 spec.
Yusuke Suzuki
Comment 4
2019-11-15 17:24:39 PST
(In reply to Michael Saboff from
comment #3
)
> Comment on
attachment 383671
[details]
> Patch > > r=me. Always creating "groups" including creating an undefined "groups" for > str.match() results where there aren't any named capture groups is compliant > with the ECMA-262 spec.
Yes, now it is updated and defining undefined for "groups" if named capture groups do not exist is the spec compliant behavior :)
Yusuke Suzuki
Comment 5
2019-11-15 17:25:27 PST
Committed
r252514
: <
https://trac.webkit.org/changeset/252514
>
Yusuke Suzuki
Comment 6
2019-11-15 17:26:12 PST
<
rdar://problem/57186234
>
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