WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
172658
Redeclaration error - let in for loop
https://bugs.webkit.org/show_bug.cgi?id=172658
Summary
Redeclaration error - let in for loop
Boopathi
Reported
2017-05-26 13:13:18 PDT
The following code is valid ES6 and Safari and Safari Technology Preview throws a SyntaxError: Cannot declare a let variable twice function foo ( a ) { for ( let a ;; ); }
Attachments
Add attachment
proposed patch, testcase, etc.
Saam Barati
Comment 1
2017-05-26 17:13:31 PDT
(In reply to Boopathi from
comment #0
)
> The following code is valid ES6 and Safari and Safari Technology Preview > throws a SyntaxError: Cannot declare a let variable twice > > function foo ( a ) { > for ( let a ;; ); > }
Thanks for the report. We fixed this recently:
https://trac.webkit.org/changeset/217200/webkit
You can verify by getting a webkit nightly
Radar WebKit Bug Importer
Comment 2
2017-05-30 20:20:36 PDT
<
rdar://problem/32479680
>
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