Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 143b8707d5cac4661909572f6ebc3967e8ced89d..ac8f6eb79ed979a7362fa7c78f125faccded3dd9 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -14855,9 +14855,9 @@ RUNTIME_FUNCTION(Runtime_SetIsObserved) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 1); |
CONVERT_ARG_HANDLE_CHECKED(JSReceiver, obj, 0); |
- ASSERT(!obj->IsJSGlobalProxy()); |
- if (obj->IsJSProxy()) |
- return isolate->heap()->undefined_value(); |
+ RUNTIME_ASSERT(!obj->IsJSGlobalProxy()); |
+ if (obj->IsJSProxy()) return isolate->heap()->undefined_value(); |
+ RUNTIME_ASSERT(!obj->map()->is_observed()); |
ASSERT(obj->IsJSObject()); |
JSObject::SetObserved(Handle<JSObject>::cast(obj)); |