throw error if variable isnt found

This commit is contained in:
cloudhead
2010-02-23 18:00:53 -05:00
parent 5f6160f220
commit 1d2b335827

View File

@@ -14,5 +14,6 @@ node.Variable.prototype.eval = function (env) {
}
}
}
throw new(Error)("variable " + this.name + " is undefined");
};