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: | JavaScriptCore | Assignee: | 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
This has a syntax error, but shouldn't:
```
var i;
for (let i = 0; i < 10; i++) {
print(i);
}
```
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Saam Barati
I fixed this recently. We no longer throw a syntax error.