зеркало из https://github.com/mozilla/gecko-dev.git
Bug 773153: don't use operand context when looking for line end. r=njn
This commit is contained in:
Родитель
125aebf06d
Коммит
17143b0022
|
@ -1891,7 +1891,7 @@ Parser::processDirectives(ParseNode *stmts)
|
|||
const Token directive = tokenStream.currentToken();
|
||||
bool isDirective = IsEscapeFreeStringLiteral(directive);
|
||||
JSAtom *atom = directive.atom();
|
||||
TokenKind next = tokenStream.peekTokenSameLine(TSF_OPERAND);
|
||||
TokenKind next = tokenStream.peekTokenSameLine();
|
||||
if (next != TOK_EOF && next != TOK_EOL && next != TOK_SEMI && next != TOK_RC) {
|
||||
freeTree(stringNode);
|
||||
if (next == TOK_ERROR)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
function f() {
|
||||
"" < "";
|
||||
}
|
Загрузка…
Ссылка в новой задаче