-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
Currently on master, func arr...
compiles to func.apply(func, arr)
. In 0.9.4, it was func.apply(this, arr)
. However, I believe that the proper output should be func.apply(null, arr)
, as this example illustrates:
arr = [1, 2, 3]
`property = 'huh'; // global`
func = -> console.log @property
func arr # 'huh'
func.apply(null, arr) # 'huh
func arr... # undefined