Commit bef2fbcc authored by adamk's avatar adamk Committed by Commit bot

[cleanup] Use NewVariableProxy() instead of NewUnresolved where possible

Review URL: https://codereview.chromium.org/1386383003

Cr-Commit-Position: refs/heads/master@{#31202}
parent a0d119c7
......@@ -4731,8 +4731,7 @@ ZoneList<Statement*>* Parser::ParseEagerFunctionBody(
proxy, fvar_mode, scope_, RelocInfo::kNoPosition);
scope_->DeclareFunctionVar(fvar_declaration);
VariableProxy* fproxy = scope_->NewUnresolved(factory(), function_name);
fproxy->BindTo(fvar);
VariableProxy* fproxy = factory()->NewVariableProxy(fvar);
result->Set(kFunctionNameAssignmentIndex,
factory()->NewExpressionStatement(
factory()->NewAssignment(fvar_init_op, fproxy,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment