upgrading the test harness

This commit is contained in:
Jeremy Ashkenas
2010-02-09 08:15:11 -05:00
parent c6a6788694
commit a451e90374
3 changed files with 35 additions and 93 deletions

View File

@@ -9,15 +9,13 @@
// as well as the Expressions body where it should declare its variables,
// and the function that it wraps.
Scope = (exports.Scope = function Scope(parent, expressions, method) {
var __a;
this.parent = parent;
this.expressions = expressions;
this.method = method;
this.variables = {
};
this.temp_variable = this.parent ? this.parent.temp_variable : '__a';
__a = this;
return Scope === this.constructor ? this : __a;
return this;
});
// Look up a variable in lexical scope, or declare it if not found.
Scope.prototype.find = function find(name, remote) {