Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 2044805ca90f384e425265378bec18d2e621fd59..80138c0aab962c8d6569b37ee864cc9732f9849e 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -635,6 +635,7 @@ Handle<JSArray> Isolate::CaptureSimpleStackTrace(Handle<JSObject> error_object, |
} |
Handle<JSArray> result = factory()->NewJSArrayWithElements(elements); |
result->set_length(Smi::FromInt(cursor)); |
+ heap()->error_object_list()->Add(*error_object); |
return result; |
} |