Bug 172658
Summary: | Redeclaration error - let in for loop | ||
---|---|---|---|
Product: | WebKit | Reporter: | Boopathi <me> |
Component: | JavaScriptCore | Assignee: | 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
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
(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
<rdar://problem/32479680>