Remove duplicate error message

This commit is contained in:
Fugiman 2016-01-19 02:04:17 -08:00 committed by Burak Can
parent e457f7aab5
commit de5fb76d94

View File

@ -1418,8 +1418,10 @@ function parse($TEXT, options) {
tokenizer_S.next();
next();
segments.push(expression());
if (!is("punc", "}"))
token_error(tokenizer_S.token, "Unexpected token " + tokenizer_S.token.type + " «" + tokenizer_S.token.value + "»" + ", expected punc «}»");
if (!is("punc", "}")) {
// force error message
expect("}");
}
continue;
}
segment += ch;