Bug 172658

Summary: Redeclaration error - let in for loop
Product: WebKit Reporter: Boopathi <me>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: fpizlo, saam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac   
OS: All   
URL: https://github.com/babel/babili/issues/559
See Also: https://bugs.webkit.org/show_bug.cgi?id=149721

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
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
Note You need to log in before you can comment on or make changes to this bug.