Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 322479dec60715085633e4642ff18b3c31d5ae29..0904c7518b1dfd827dc4fe8c988b955f13012619 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1240,7 +1240,7 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, |
!pretenure && |
scope()->is_function_scope() && |
info->num_literals() == 0) { |
- FastNewClosureStub stub(info->language_mode()); |
+ FastNewClosureStub stub(info->language_mode(), info->is_generator()); |
__ Push(info); |
__ CallStub(&stub); |
} else { |