mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
fixed a regression that for-in was failing to cache the source value
This commit is contained in:
@@ -182,7 +182,7 @@ class Mini
|
||||
@num
|
||||
|
||||
m = new Mini
|
||||
ok (func() for func in m.generate()).join(' ') is '10 10 10'
|
||||
eq (func() for func in m.generate()).join(' '), '10 10 10'
|
||||
|
||||
|
||||
# Testing a contructor called with varargs.
|
||||
|
||||
@@ -101,3 +101,6 @@ learn = ->
|
||||
ok learn().join(' ') is '1 2 3'
|
||||
|
||||
ok rule(101) is 101
|
||||
|
||||
f = -> [-> ok no, 'should cache source']
|
||||
ok yes for k of [f] = f()
|
||||
|
||||
Reference in New Issue
Block a user