From c0cb0c35e2118edb4e3d760da4e92b8624683bbd Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Fri, 26 Nov 2010 02:06:10 -0500 Subject: [PATCH] adding tests for #855 --- test/test_functions.coffee | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_functions.coffee b/test/test_functions.coffee index 0d9675d9..1bb26f21 100644 --- a/test/test_functions.coffee +++ b/test/test_functions.coffee @@ -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... +)()