Index: runtime/vm/object_service.cc |
diff --git a/runtime/vm/object_service.cc b/runtime/vm/object_service.cc |
index fe9566c0f9859ce8fb6dcfb3e48b47627e1533ad..35c3d07bb7f9886172e2a3d566b77d6f26896f23 100644 |
--- a/runtime/vm/object_service.cc |
+++ b/runtime/vm/object_service.cc |
@@ -1502,8 +1502,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()); |
} |