WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
146206
[ES6] Support rest element in destructuring assignments
https://bugs.webkit.org/show_bug.cgi?id=146206
Summary
[ES6] Support rest element in destructuring assignments
Yusuke Suzuki
Reported
2015-06-22 07:40:12 PDT
[ES6] Support rest element in destructuring assignments
Attachments
Patch
(23.34 KB, patch)
2015-06-22 23:04 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(23.34 KB, patch)
2015-06-22 23:54 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2015-06-22 23:04:32 PDT
Created
attachment 255394
[details]
Patch
WebKit Commit Bot
Comment 2
2015-06-22 23:06:24 PDT
Attachment 255394
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/parser/Nodes.h:1794: Missing space before { [whitespace/braces] [5] Total errors found: 1 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yusuke Suzuki
Comment 3
2015-06-22 23:49:18 PDT
Comment on
attachment 255394
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=255394&action=review
> Source/JavaScriptCore/parser/Nodes.h:1794 > + m_targetPatterns.append(Entry{ bindingType, node, defaultValue });
Styling warns it, but I think it's ok. What do you think about it?
Darin Adler
Comment 4
2015-06-22 23:51:40 PDT
Comment on
attachment 255394
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=255394&action=review
>> Source/JavaScriptCore/parser/Nodes.h:1794 >> + m_targetPatterns.append(Entry{ bindingType, node, defaultValue }); > > Styling warns it, but I think it's ok. What do you think about it?
I think the style script doesn’t understand the code, but I agree it’s OK. However, we can write this an even better way now that we have improved Vector; the type can be omitted: m_targetPatterns.append({ bindingType, node, defaultValue });
Yusuke Suzuki
Comment 5
2015-06-22 23:52:56 PDT
Comment on
attachment 255394
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=255394&action=review
>>> Source/JavaScriptCore/parser/Nodes.h:1794 >>> + m_targetPatterns.append(Entry{ bindingType, node, defaultValue }); >> >> Styling warns it, but I think it's ok. What do you think about it? > > I think the style script doesn’t understand the code, but I agree it’s OK. However, we can write this an even better way now that we have improved Vector; the type can be omitted: > > m_targetPatterns.append({ bindingType, node, defaultValue });
Looks nice. I'll update it ;)
Yusuke Suzuki
Comment 6
2015-06-22 23:54:42 PDT
Created
attachment 255397
[details]
Patch
Yusuke Suzuki
Comment 7
2015-06-23 16:55:14 PDT
The patch is ready. Could anyone take a look?
Yusuke Suzuki
Comment 8
2015-06-25 19:07:46 PDT
Could you take a look?
Oliver Hunt
Comment 9
2015-06-25 19:12:37 PDT
Comment on
attachment 255397
[details]
Patch R=me
Yusuke Suzuki
Comment 10
2015-06-25 19:23:45 PDT
Comment on
attachment 255397
[details]
Patch Thank you for your review, oliver@!
WebKit Commit Bot
Comment 11
2015-06-25 20:14:16 PDT
Comment on
attachment 255397
[details]
Patch Clearing flags on attachment: 255397 Committed
r185981
: <
http://trac.webkit.org/changeset/185981
>
WebKit Commit Bot
Comment 12
2015-06-25 20:14:21 PDT
All reviewed patches have been landed. Closing bug.
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