| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 16e77300a03ab6ba622b11a0d403dee8fa7bb42e..df02a3248ea3e232e4ee8013cba92d292ad7b455 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -703,6 +703,12 @@ void Genesis::CreateIteratorMaps(Handle<JSFunction> empty) {
|
| SimpleInstallFunction(generator_object_prototype, "throw",
|
| Builtins::kGeneratorPrototypeThrow, 1, true);
|
|
|
| + // Internal version of generator_prototype_next, flagged as non-native.
|
| + Handle<JSFunction> generator_next_internal =
|
| + SimpleCreateFunction(isolate(), factory()->next_string(),
|
| + Builtins::kGeneratorPrototypeNext, 1, true);
|
| + native_context()->set_generator_next_internal(*generator_next_internal);
|
| +
|
| // Create maps for generator functions and their prototypes. Store those
|
| // maps in the native context. The "prototype" property descriptor is
|
| // writable, non-enumerable, and non-configurable (as per ES6 draft
|
|
|