| Index: src/api-natives.cc
|
| diff --git a/src/api-natives.cc b/src/api-natives.cc
|
| index 28d6a498a392241417fb1eca00773a73cd678251..cda22a6af345d62bb1b31dfd3b0d2cf503302514 100644
|
| --- a/src/api-natives.cc
|
| +++ b/src/api-natives.cc
|
| @@ -299,9 +299,9 @@ MaybeHandle<JSFunction> InstantiateFunction(Isolate* isolate,
|
| JSObject::GetProperty(parent_instance,
|
| isolate->factory()->prototype_string()),
|
| JSFunction);
|
| - RETURN_ON_EXCEPTION(
|
| - isolate, JSObject::SetPrototype(prototype, parent_prototype, false),
|
| - JSFunction);
|
| + MAYBE_RETURN(JSObject::SetPrototype(prototype, parent_prototype, false,
|
| + THROW_ON_ERROR),
|
| + MaybeHandle<JSFunction>());
|
| }
|
| }
|
| auto function = ApiNatives::CreateApiFunction(
|
|
|