Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index 8eee6b808ec3c5df6331d15e11297047f7cac0aa..00ce27325a15a41158b9bae2d367506da75814e1 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -162,9 +162,8 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate, Handle<Object> name, |
Object); |
if (!constructor_parent.is_null()) { |
- RETURN_ON_EXCEPTION( |
- isolate, JSObject::SetPrototype(constructor, constructor_parent, false), |
- Object); |
+ MAYBE_RETURN_NULL(JSObject::SetPrototype(constructor, constructor_parent, |
+ false, THROW_ON_ERROR)); |
} |
JSObject::AddProperty(prototype, isolate->factory()->constructor_string(), |