Bug 145765
| Summary: | [JSC] SyntaxError message for missing statement as the body of for-in / for-of has a typo | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jesse Ruderman <jruderman> |
| Component: | JavaScriptCore | Assignee: | Alexey Shvayka <ashvayka> |
| Status: | RESOLVED FIXED | ||
| Severity: | Enhancement | CC: | ashvayka, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Jesse Ruderman
Safari Version 8.0.6 (10600.6.3, r185316)
> {for (a in [])}
SyntaxError: Unexpected token '}'. Expected a statement as the body of a for-inloop.
> {for (a of [])}
SyntaxError: Unexpected token '}'. Expected a statement as the body of a for-ofloop.
There should be a space before "loop".
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/115849153>
Alexey Shvayka
Pull request: https://github.com/WebKit/WebKit/pull/18030
EWS
Committed 268271@main (a636b441f67e): <https://commits.webkit.org/268271@main>
Reviewed commits have been landed. Closing PR #18030 and removing active labels.