| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 6f5dcff189a37235eb57ea0ec26a8d18c136c5c4..32df9810c4e279f57b7f2e703ca2875e2aaa16e6 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -696,8 +696,10 @@ void Genesis::CreateIteratorMaps(Handle<JSFunction> empty) {
|
| factory()->to_string_tag_symbol(),
|
| factory()->NewStringFromAsciiChecked("Generator"),
|
| static_cast<PropertyAttributes>(DONT_ENUM | READ_ONLY));
|
| - SimpleInstallFunction(generator_object_prototype, "next",
|
| - Builtins::kGeneratorPrototypeNext, 1, true);
|
| + Handle<JSFunction> next =
|
| + SimpleInstallFunction(generator_object_prototype, "next",
|
| + Builtins::kGeneratorPrototypeNext, 1, true);
|
| + native_context()->set_generator_prototype_next(*next);
|
| SimpleInstallFunction(generator_object_prototype, "return",
|
| Builtins::kGeneratorPrototypeReturn, 1, true);
|
| SimpleInstallFunction(generator_object_prototype, "throw",
|
|
|