Index: runtime/vm/object_service.cc |
diff --git a/runtime/vm/object_service.cc b/runtime/vm/object_service.cc |
index 8cf15a8b97a15203ee5f19a65f1d9cc233424655..93ec30ed1cc107e932a5ac47d990c70cb9a87414 100644 |
--- a/runtime/vm/object_service.cc |
+++ b/runtime/vm/object_service.cc |
@@ -1481,8 +1481,7 @@ void StackTrace::PrintJSONImpl(JSONStream* stream, bool ref) const { |
PrintSharedInstanceJSON(&jsobj, ref); |
jsobj.AddProperty("kind", "StackTrace"); |
jsobj.AddServiceId(*this); |
- intptr_t idx = 0; |
- jsobj.AddProperty("valueAsString", ToCStringInternal(*this, &idx)); |
+ jsobj.AddProperty("valueAsString", ToCString()); |
} |