WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 150769
[ES6] Support Generator Syntax
https://bugs.webkit.org/show_bug.cgi?id=150769
Summary
[ES6] Support Generator Syntax
Yusuke Suzuki
Reported
2015-11-01 00:24:18 PDT
Support Generator Syntax, this is the first step toward implementing Generators.
Attachments
Patch
(109.02 KB, patch)
2015-11-01 01:46 PST
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(128.28 KB, patch)
2015-11-01 08:10 PST
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-mavericks
(693.06 KB, application/zip)
2015-11-01 09:13 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews104 for mac-mavericks-wk2
(728.97 KB, application/zip)
2015-11-01 09:17 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews117 for mac-yosemite
(819.11 KB, application/zip)
2015-11-01 09:22 PST
,
Build Bot
no flags
Details
Patch
(133.25 KB, patch)
2015-11-01 17:40 PST
,
Yusuke Suzuki
ggaren
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2015-11-01 01:46:49 PST
Created
attachment 264508
[details]
Patch WIP
Yusuke Suzuki
Comment 2
2015-11-01 08:10:24 PST
Created
attachment 264517
[details]
Patch
WebKit Commit Bot
Comment 3
2015-11-01 08:11:32 PST
Attachment 264517
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/parser/ParserTokens.h:81: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] ERROR: Source/JavaScriptCore/parser/Keywords.table:41: Line contains tab character. [whitespace/tab] [5] ERROR: Source/JavaScriptCore/parser/Parser.cpp:207: Wrong number of spaces before statement. (expected: 8) [whitespace/indent] [4] ERROR: Source/JavaScriptCore/parser/Parser.cpp:2505: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 4 in 42 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 4
2015-11-01 09:13:23 PST
Comment on
attachment 264517
[details]
Patch
Attachment 264517
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/367906
New failing tests: js/dom/reserved-words-as-property.html
Build Bot
Comment 5
2015-11-01 09:13:26 PST
Created
attachment 264518
[details]
Archive of layout-test-results from ews101 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-mavericks Platform: Mac OS X 10.9.5
Build Bot
Comment 6
2015-11-01 09:17:42 PST
Comment on
attachment 264517
[details]
Patch
Attachment 264517
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/367910
New failing tests: js/dom/reserved-words-as-property.html
Build Bot
Comment 7
2015-11-01 09:17:45 PST
Created
attachment 264519
[details]
Archive of layout-test-results from ews104 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Build Bot
Comment 8
2015-11-01 09:22:10 PST
Comment on
attachment 264517
[details]
Patch
Attachment 264517
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/367900
New failing tests: js/dom/reserved-words-as-property.html
Build Bot
Comment 9
2015-11-01 09:22:13 PST
Created
attachment 264520
[details]
Archive of layout-test-results from ews117 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-yosemite Platform: Mac OS X 10.10.5
Geoffrey Garen
Comment 10
2015-11-01 12:49:23 PST
Comment on
attachment 264517
[details]
Patch EWS is red.
Yusuke Suzuki
Comment 11
2015-11-01 17:40:21 PST
Created
attachment 264547
[details]
Patch Oops. Updated the patch
WebKit Commit Bot
Comment 12
2015-11-01 17:43:30 PST
Attachment 264547
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/parser/ParserTokens.h:81: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] ERROR: Source/JavaScriptCore/parser/Keywords.table:41: Line contains tab character. [whitespace/tab] [5] ERROR: Source/JavaScriptCore/parser/Parser.cpp:207: Wrong number of spaces before statement. (expected: 8) [whitespace/indent] [4] ERROR: Source/JavaScriptCore/parser/Parser.cpp:2505: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 4 in 43 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 13
2015-11-01 18:04:57 PST
Comment on
attachment 264547
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=264547&action=review
r=me
> Source/JavaScriptCore/parser/Parser.cpp:478 > + // Intentionally use `match(IDENT) || match(YIELD) || match(LET)` and not use `matchSpecIdentifier()`.
not use => don't use
> Source/JavaScriptCore/parser/Parser.cpp:479 > + // Because, we would like to fall into parseVariableDeclaration path even if "yield" is not treated as an Identifier.
Because, we => We
> Source/JavaScriptCore/parser/Parser.cpp:483 > + if (!(match(IDENT) || match(YIELD) || match(LET)) && !match(OPENBRACE) && !match(OPENBRACKET))
Should we test let before yield since it will be more common?
> Source/JavaScriptCore/parser/Parser.cpp:1751 > - > + > matchOrFail(OPENBRACE, "Expected an opening '{' at the start of a ", stringForFunctionMode(mode), " body"); > - > + > // BytecodeGenerator emits code to throw TypeError when a class constructor is "call"ed. > // Set ConstructorKind to None for non-constructor methods of classes. > - > +
Revert whitespace changes please.
Yusuke Suzuki
Comment 14
2015-11-01 21:25:37 PST
Comment on
attachment 264547
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=264547&action=review
Thanks for your review :) After ensuring the patch passes EWS, I'll land it with pointed fixes.
>> Source/JavaScriptCore/parser/Parser.cpp:478 >> + // Intentionally use `match(IDENT) || match(YIELD) || match(LET)` and not use `matchSpecIdentifier()`. > > not use => don't use
Fixed.
>> Source/JavaScriptCore/parser/Parser.cpp:479 >> + // Because, we would like to fall into parseVariableDeclaration path even if "yield" is not treated as an Identifier. > > Because, we => We
Changed.
>> Source/JavaScriptCore/parser/Parser.cpp:483 >> + if (!(match(IDENT) || match(YIELD) || match(LET)) && !match(OPENBRACE) && !match(OPENBRACKET)) > > Should we test let before yield since it will be more common?
Nice! I've exchanged :)
>> Source/JavaScriptCore/parser/Parser.cpp:1751 >> + > > Revert whitespace changes please.
OK, reverted.
Yusuke Suzuki
Comment 15
2015-11-01 21:47:12 PST
Committed
r191875
: <
http://trac.webkit.org/changeset/191875
>
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