fix: find variable in parent scope (strict_variables)

This commit is contained in:
harttle
2016-11-08 21:01:25 +08:00
parent fd9fed154c
commit 295eee8134
5 changed files with 50 additions and 21 deletions
+4
View File
@@ -14,7 +14,11 @@ TokenizationError.prototype.constructor = TokenizationError;
function ParseError(message, input, line, e) {
if(Error.captureStackTrace){
Error.captureStackTrace(this, this.constructor);
} else{
this.stack = "";
}
this.stack += (this.stack ? "\nFrom " : "From ") + e.stack;
this.name = this.constructor.name;
this.originalError = e;