Index: pkg/compiler/lib/src/dump_info.dart |
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart |
index 22fa2f03848a1aaba76d19668d30fb5f8297d5a1..3088cef415999aacb0a7d88e4b39dc323509c464 100644 |
--- a/pkg/compiler/lib/src/dump_info.dart |
+++ b/pkg/compiler/lib/src/dump_info.dart |
@@ -567,7 +567,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter { |
ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( |
new StringConversionSink.fromStringSink(buffer)); |
- sink.add(result.toJson()); |
+ sink.add(new JsonInfoCodec().encode(result)); |
reporter.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { |
'text': "View the dumped .info.json file at " |
"https://dart-lang.github.io/dump-info-visualizer" |