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:
parent
9db6d6f4ef
commit
c0cb0c35e2
1 changed files with 10 additions and 0 deletions
|
@ -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...
|
||||
)()
|
||||
|
|
Loading…
Reference in a new issue