Backed out changeset cf2ee5242986 (bug 1363191)

This commit is contained in:
Carsten "Tomcat" Book 2017-05-10 13:01:23 +02:00
Родитель 85e7d31eb4
Коммит 76338929ce
2 изменённых файлов: 12 добавлений и 17 удалений

Просмотреть файл

@ -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;