Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 576098271b2d00bd3ee380f76ba85cff194b4eed..d6bb58b7084123aa6c6920b57fc657addcb22a22 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -14156,13 +14156,13 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CollectStackTrace) { |
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetAndClearOverflowedStackTrace) { |
HandleScope scope(isolate); |
ASSERT_EQ(args.length(), 1); |
- CONVERT_ARG_CHECKED(JSObject, error_object, 0); |
- String* key = isolate->heap()->hidden_stack_trace_string(); |
- Object* result = error_object->GetHiddenProperty(key); |
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, error_object, 0); |
+ Handle<String> key = isolate->factory()->hidden_stack_trace_string(); |
+ Handle<Object> result(error_object->GetHiddenProperty(*key), isolate); |
if (result->IsTheHole()) return isolate->heap()->undefined_value(); |
RUNTIME_ASSERT(result->IsJSArray() || result->IsUndefined()); |
- error_object->DeleteHiddenProperty(key); |
- return result; |
+ JSObject::DeleteHiddenProperty(error_object, key); |
+ return *result; |
} |