Support for @-prefixed splats.

This commit is contained in:
Timothy Jones
2010-07-28 18:17:50 +12:00
parent c9421cbfcd
commit 9026069f79
3 changed files with 37 additions and 33 deletions

View File

@@ -29,4 +29,7 @@ ok sumOfArgs(1, 2, 3, 4, 5) is 15
ok context.arg is 1
((splat..., @arg) ->).call context, 1, 2, 3
ok context.arg is 3
ok context.arg is 3
((@arg...) ->).call context, 1, 2, 3
ok context.arg.join ' ' is '1 2 3'