Revert "Passing the arguments object directly when generating a closure."

This reverts commit 7b887f065d.
This commit is contained in:
Timothy Jones
2010-10-24 02:15:01 +13:00
parent 7b887f065d
commit 3834e7bc33
3 changed files with 11 additions and 12 deletions

View File

@@ -70,9 +70,7 @@ ok result.join(' ') is '6 4 2'
# Closure-wrapped comprehensions that refer to the "arguments" object.
expr = ->
result = for item in arguments
ok arguments.callee is expr
item * item
result = item * item for item in arguments
ok expr(2, 4, 8).join(' ') is '4 16 64'