| Index: src/api-natives.cc
|
| diff --git a/src/api-natives.cc b/src/api-natives.cc
|
| index a620b210a4b65156560b3788d3fa3ce8322d3ccb..ab1b06256e0301b0ba60ef4705a203ed9a3476b5 100644
|
| --- a/src/api-natives.cc
|
| +++ b/src/api-natives.cc
|
| @@ -437,9 +437,7 @@ MaybeHandle<JSFunction> InstantiateFunction(Isolate* isolate,
|
| JSObject::GetProperty(parent_instance,
|
| isolate->factory()->prototype_string()),
|
| JSFunction);
|
| - MAYBE_RETURN(JSObject::SetPrototype(prototype, parent_prototype, false,
|
| - Object::THROW_ON_ERROR),
|
| - MaybeHandle<JSFunction>());
|
| + JSObject::ForceSetPrototype(prototype, parent_prototype);
|
| }
|
| }
|
| Handle<JSFunction> function = ApiNatives::CreateApiFunction(
|
|
|