mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
variadic arguments breaking out of scope (test)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user