Bug 149721

Summary: Invalid syntax error with a for loop's "let" induction variable and a global "var"
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=172658

Saam Barati
Reported 2015-10-01 13:16:52 PDT
This has a syntax error, but shouldn't: ``` var i; for (let i = 0; i < 10; i++) { print(i); } ```
Attachments
Saam Barati
Comment 1 2017-06-13 17:39:29 PDT
I fixed this recently. We no longer throw a syntax error.
Note You need to log in before you can comment on or make changes to this bug.