mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
fix: find variable in parent scope (strict_variables)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user