Skip to content

Commit c820e02

Browse files
committed
Fixes #3053 - error for mismatched own/for-in without an index.
1 parent eb2ac2c commit c820e02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/coffee-script/nodes.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/nodes.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,7 @@ exports.For = class For extends While
18461846
@pattern = @name instanceof Value
18471847
@index.error 'indexes do not apply to range loops' if @range and @index
18481848
@name.error 'cannot pattern match over range loops' if @range and @pattern
1849-
@index.error 'cannot use own with for-in' if @own and not @object
1849+
@name.error 'cannot use own with for-in' if @own and not @object
18501850
@returns = false
18511851

18521852
children: ['body', 'source', 'guard', 'step']

0 commit comments

Comments
 (0)