adding tests for #855

This commit is contained in:
Michael Ficarra 2010-11-26 02:06:10 -05:00
parent 9db6d6f4ef
commit c0cb0c35e2
1 changed files with 10 additions and 0 deletions

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...
)()