Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: src/api-natives.cc

Issue 1417243002: [es6] Partially implement Reflect.setPrototypeOf. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/api.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « src/api.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698