1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

adding tests for #855

This commit is contained in:
Michael Ficarra 2010-11-26 02:06:10 -05:00
parent 9db6d6f4ef
commit c0cb0c35e2

View file

@ -345,3 +345,13 @@ eq ok, new ->
ok
### Should `return` implicitly ###
### even with trailing comments. ###
#855: execution context for `func arr...` should be `null`
(->
global = @
contextTest = -> ok global is @
array = []
contextTest array
contextTest.apply null, array
contextTest array...
)()