| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index 61bd28fe0fa6c15a23b81cfa200a21c4d15c38f9..e64c399fc4d914d842415daf668676a053903f5d 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -6127,7 +6127,7 @@ static bool StreamTraceEvents(Dart_StreamConsumer consumer,
|
| // Steal output from JSONStream.
|
| char* output = NULL;
|
| intptr_t output_length = 0;
|
| - js->Steal(const_cast<const char**>(&output), &output_length);
|
| + js->Steal(&output, &output_length);
|
| if (output_length < 3) {
|
| // Empty JSON array.
|
| free(output);
|
|
|