putting back arguments.

This commit is contained in:
Jeremy Ashkenas 2010-10-21 00:07:21 -04:00
parent 0d4d7e0880
commit 7596e3a157
2 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,12 @@
this.method = _arg3;
this.expressions = _arg2;
this.parent = _arg;
this.variables = [];
this.variables = [
{
name: 'arguments',
type: 'arguments'
}
];
this.positions = {};
if (this.parent) {
this.garbage = this.parent.garbage;

View File

@ -18,7 +18,7 @@ exports.Scope = class Scope
# where it should declare its variables, and a reference to the function that
# it wraps.
constructor: (@parent, @expressions, @method) ->
@variables = []
@variables = [{name: 'arguments', type: 'arguments'}]
@positions = {}
if @parent
@garbage = @parent.garbage