зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset cf2ee5242986 (bug 1363191)
This commit is contained in:
Родитель
85e7d31eb4
Коммит
76338929ce
|
@ -2098,24 +2098,21 @@ Parser<FullParseHandler, char16_t>::evalBody(EvalSharedContext* evalsc)
|
|||
if (!varScope.init(pc))
|
||||
return nullptr;
|
||||
|
||||
ParseNode* body;
|
||||
{
|
||||
// All evals have an implicit non-extensible lexical scope.
|
||||
ParseContext::Scope lexicalScope(this);
|
||||
if (!lexicalScope.init(pc))
|
||||
return nullptr;
|
||||
// All evals have an implicit non-extensible lexical scope.
|
||||
ParseContext::Scope lexicalScope(this);
|
||||
if (!lexicalScope.init(pc))
|
||||
return nullptr;
|
||||
|
||||
body = statementList(YieldIsName);
|
||||
if (!body)
|
||||
return nullptr;
|
||||
ParseNode* body = statementList(YieldIsName);
|
||||
if (!body)
|
||||
return nullptr;
|
||||
|
||||
if (!checkStatementsEOF())
|
||||
return nullptr;
|
||||
if (!checkStatementsEOF())
|
||||
return nullptr;
|
||||
|
||||
body = finishLexicalScope(lexicalScope, body);
|
||||
if (!body)
|
||||
return nullptr;
|
||||
}
|
||||
body = finishLexicalScope(lexicalScope, body);
|
||||
if (!body)
|
||||
return nullptr;
|
||||
|
||||
// It's an error to use 'arguments' in a legacy generator expression.
|
||||
//
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
eval("{ function f() {} }");
|
||||
let f;
|
Загрузка…
Ссылка в новой задаче