Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 3e77584f8a2828bf0fdc872178879370e77b5443..5ac7840401d66dd4dd0e11ea001ff5424990cd4e 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -13360,7 +13360,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) { |
RUNTIME_FUNCTION(MaybeObject*, Runtime_IsObserved) { |
NoHandleAllocation ha(isolate); |
ASSERT(args.length() == 1); |
- CONVERT_ARG_CHECKED(JSReceiver, obj, 0); |
+ |
+ if (!args[0]->IsJSReceiver()) return isolate->heap()->false_value(); |
+ JSReceiver* obj = JSReceiver::cast(args[0]); |
if (obj->IsJSGlobalProxy()) { |
Object* proto = obj->GetPrototype(); |
if (proto->IsNull()) return isolate->heap()->false_value(); |