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: JavaScriptCoreAssignee: 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   

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.