variadic arguments breaking out of scope (test)

This commit is contained in:
Adam Freidin
2011-05-07 16:55:27 -07:00
parent 56b2b02637
commit 2dc2d162bc

View File

@@ -20,3 +20,9 @@ test "assignment to an Object.prototype-named variable should not leak to outer
constructor = 'word'
)()
ok constructor isnt 'word'
test "siblings of variadic arguments shouldn't break out.", ->
x = 10
oops = (x,args...) ->
oops(20, 1,2,3)
eq x, 10