| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index df526d5bd7ce23abeb2b085c9488172180f8511a..b1291911e83184dc652a5ea350a0cd7e74e195fa 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10824,7 +10824,7 @@ void JSFunction::SetPrototype(Handle<JSFunction> function,
|
| new_map->set_non_instance_prototype(true);
|
| Isolate* isolate = new_map->GetIsolate();
|
| construct_prototype = handle(
|
| - isolate->context()->native_context()->initial_object_prototype(),
|
| + function->context()->native_context()->initial_object_prototype(),
|
| isolate);
|
| } else {
|
| function->map()->set_non_instance_prototype(false);
|
|
|