Chromium Code Reviews| Index: src/parser.cc |
| diff --git a/src/parser.cc b/src/parser.cc |
| index e468cb970c09bc75a32f21938c9a7cb839124b4c..f34bf59a2208e4dd8f0b0416951e548a4374f9d1 100644 |
| --- a/src/parser.cc |
| +++ b/src/parser.cc |
| @@ -4392,6 +4392,8 @@ FunctionLiteral* Parser::ParseFunctionLiteral(Handle<String> function_name, |
| // Parse function body. |
| { FunctionState function_state(this, scope, is_generator, isolate()); |
| top_scope_->SetScopeName(function_name); |
| + if (is_generator) |
|
Michael Starzinger
2013/04/05 11:38:42
style: Either the whole conditional on one line or
wingo
2013/04/05 12:25:06
Done.
|
| + top_scope_->ForceContextAllocation(); |
| // FormalParameterList :: |
| // '(' (Identifier)*[','] ')' |