Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 8917c585908bf89da27d23cf03d0c92d2130447d..86f7f0f430abe3d79d2d63d20f090923f3e20c69 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -13380,6 +13380,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOverflowedStackTrace) { |
CONVERT_ARG_CHECKED(JSObject, error_object, 0); |
String* key = isolate->heap()->hidden_stack_trace_string(); |
Object* result = error_object->GetHiddenProperty(key); |
+ if (result->IsTheHole()) result = isolate->heap()->undefined_value(); |
RUNTIME_ASSERT(result->IsJSArray() || |
result->IsString() || |
result->IsUndefined()); |