unterminated -> missing.

This commit is contained in:
Jeremy Ashkenas 2010-12-18 14:40:22 -05:00
parent 89678fca47
commit e379fcf2cf
2 changed files with 2 additions and 2 deletions

View File

@ -472,7 +472,7 @@
}
prev = letter;
}
throw new Error("missing " + (stack.pop()[0]) + ", starting on line " + (this.line + 1));
throw new Error("missing " + (stack.pop()) + ", starting on line " + (this.line + 1));
};
Lexer.prototype.interpolateString = function(str, options) {
var expr, heredoc, i, inner, interpolated, letter, nested, pi, regex, tag, tokens, value, _len, _ref, _ref2, _ref3;

View File

@ -407,7 +407,7 @@ exports.Lexer = class Lexer
else if end is '"' and prev is '#' and letter is '{'
stack.push end = '}'
prev = letter
throw new Error "missing #{ stack.pop()[0] }, starting on line #{ @line + 1 }"
throw new Error "missing #{ stack.pop() }, starting on line #{ @line + 1 }"
# Expand variables and expressions inside double-quoted strings using