Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index 57191a8fc31d03cfdc88927d42521c06fe540182..ad69a1004bf27bb847b8ce5c6fe46427390d690d 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -1538,20 +1538,18 @@ |
NewTypeError(MessageTemplate::kInstanceofNonobjectProto, prototype)); |
} |
// Return whether or not {prototype} is in the prototype chain of {object}. |
- Maybe<bool> result = Object::HasInPrototypeChain(isolate, object, prototype); |
- MAYBE_RETURN(result, isolate->heap()->exception()); |
- return isolate->heap()->ToBoolean(result.FromJust()); |
+ return isolate->heap()->ToBoolean( |
+ object->HasInPrototypeChain(isolate, *prototype)); |
} |
RUNTIME_FUNCTION(Runtime_HasInPrototypeChain) { |
- HandleScope scope(isolate); |
+ SealHandleScope scope(isolate); |
DCHECK_EQ(2, args.length()); |
- CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
- CONVERT_ARG_HANDLE_CHECKED(Object, prototype, 1); |
- Maybe<bool> result = Object::HasInPrototypeChain(isolate, object, prototype); |
- MAYBE_RETURN(result, isolate->heap()->exception()); |
- return isolate->heap()->ToBoolean(result.FromJust()); |
+ CONVERT_ARG_CHECKED(Object, object, 0); |
+ CONVERT_ARG_CHECKED(Object, prototype, 1); |
+ return isolate->heap()->ToBoolean( |
+ object->HasInPrototypeChain(isolate, prototype)); |
} |