Bug 154143 - [ES6] we have an incorrect syntax error when a callee of a function expression has the same name as a top-level lexical declaration
Summary: [ES6] we have an incorrect syntax error when a callee of a function expressio...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords:
Depends on: 154144
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-11 17:25 PST by Saam Barati
Modified: 2016-02-12 20:52 PST (History)
14 users (show)

See Also:


Attachments
patch (13.44 KB, patch)
2016-02-11 18:24 PST, Saam Barati
benjamin: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-yosemite (892.08 KB, application/zip)
2016-02-11 19:17 PST, Build Bot
no flags Details
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (1.10 MB, application/zip)
2016-02-11 19:23 PST, Build Bot
no flags Details
Archive of layout-test-results from ews112 for mac-yosemite (1.19 MB, application/zip)
2016-02-11 20:09 PST, Build Bot
no flags Details
for landing (13.99 KB, patch)
2016-02-12 19:08 PST, Saam Barati
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 2016-02-11 17:25:25 PST
```
(function foo() { const foo = 20; });
```
is a syntax error but it shouldn't be.
Comment 1 Saam Barati 2016-02-11 18:24:06 PST
Created attachment 271113 [details]
patch
Comment 2 Build Bot 2016-02-11 19:17:01 PST
Comment on attachment 271113 [details]
patch

Attachment 271113 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/817189

New failing tests:
streams/pipe-to.html
streams/reference-implementation/pipe-through.html
streams/brand-checks.html
streams/reference-implementation/pipe-to-options.html
Comment 3 Build Bot 2016-02-11 19:17:04 PST
Created attachment 271121 [details]
Archive of layout-test-results from ews102 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 4 Build Bot 2016-02-11 19:23:13 PST
Comment on attachment 271113 [details]
patch

Attachment 271113 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/817196

New failing tests:
streams/pipe-to.html
streams/reference-implementation/pipe-through.html
streams/brand-checks.html
streams/reference-implementation/readable-stream-templated.html
streams/reference-implementation/pipe-to-options.html
Comment 5 Build Bot 2016-02-11 19:23:16 PST
Created attachment 271123 [details]
Archive of layout-test-results from ews107 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 6 Build Bot 2016-02-11 20:09:39 PST
Comment on attachment 271113 [details]
patch

Attachment 271113 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/817334

New failing tests:
streams/pipe-to.html
streams/reference-implementation/pipe-through.html
streams/brand-checks.html
streams/reference-implementation/readable-stream-templated.html
streams/reference-implementation/pipe-to-options.html
Comment 7 Build Bot 2016-02-11 20:09:43 PST
Created attachment 271125 [details]
Archive of layout-test-results from ews112 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 8 Saam Barati 2016-02-12 19:08:45 PST
Created attachment 271259 [details]
for landing
Comment 9 WebKit Commit Bot 2016-02-12 20:52:02 PST
Comment on attachment 271259 [details]
for landing

Clearing flags on attachment: 271259

Committed r196545: <http://trac.webkit.org/changeset/196545>
Comment 10 WebKit Commit Bot 2016-02-12 20:52:05 PST
All reviewed patches have been landed.  Closing bug.