Bug 145765 - [JSC] SyntaxError message for missing statement as the body of for-in / for-of has a typo
Summary: [JSC] SyntaxError message for missing statement as the body of for-in / for-o...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Enhancement
Assignee: Alexey Shvayka
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-06-08 13:13 PDT by Jesse Ruderman
Modified: 2023-09-21 13:32 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Ruderman 2015-06-08 13:13:56 PDT
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".
Comment 1 Radar WebKit Bug Importer 2023-09-21 10:28:09 PDT
<rdar://problem/115849153>
Comment 2 Alexey Shvayka 2023-09-21 11:44:02 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18030
Comment 3 EWS 2023-09-21 13:32:01 PDT
Committed 268271@main (a636b441f67e): <https://commits.webkit.org/268271@main>

Reviewed commits have been landed. Closing PR #18030 and removing active labels.