Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 85ae32ac4ebeab0dcdc85cbfd3133798e6d35c67..00c90f1bae9495d68205834beb6e0a98d15b8c45 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -639,6 +639,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; |
} |