Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index be0281b846e7520ab28b581ac18fb078bc4d8de9..d54a9f9ea5e5f1022ded3575d401a06cc4d00e57 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -14566,22 +14566,23 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsObserved) { |
RUNTIME_FUNCTION(MaybeObject*, Runtime_SetIsObserved) { |
- SealHandleScope shs(isolate); |
+ HandleScope scope(isolate); |
ASSERT(args.length() == 1); |
- CONVERT_ARG_CHECKED(JSReceiver, obj, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(JSReceiver, obj, 0); |
if (obj->IsJSGlobalProxy()) { |
Object* proto = obj->GetPrototype(); |
if (proto->IsNull()) return isolate->heap()->undefined_value(); |
ASSERT(proto->IsJSGlobalObject()); |
- obj = JSReceiver::cast(proto); |
+ obj = handle(JSReceiver::cast(proto)); |
} |
if (obj->IsJSProxy()) |
return isolate->heap()->undefined_value(); |
ASSERT(!(obj->map()->is_observed() && obj->IsJSObject() && |
- JSObject::cast(obj)->HasFastElements())); |
+ Handle<JSObject>::cast(obj)->HasFastElements())); |
ASSERT(obj->IsJSObject()); |
- return JSObject::cast(obj)->SetObserved(isolate); |
+ JSObject::SetObserved(Handle<JSObject>::cast(obj)); |
+ return isolate->heap()->undefined_value(); |
} |