Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(737)

Unified Diff: lib/component_build.dart

Issue 49223002: fix webui for sdk 0.8.7 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/observe/observable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/component_build.dart
diff --git a/lib/component_build.dart b/lib/component_build.dart
index 1a96b17f7a4ba9f7c3968562ba10c4e7618db8ff..b975328dca5934342c941e52f52f64f1901ee207 100644
--- a/lib/component_build.dart
+++ b/lib/component_build.dart
@@ -20,7 +20,7 @@ library build_utils;
import 'dart:async';
import 'dart:io';
-import 'dart:json' as json;
+import 'dart:convert';
import 'package:args/args.dart';
import 'dwc.dart' as dwc;
@@ -84,7 +84,7 @@ Future<List<dwc.CompilerResult>> build(List<String> arguments,
if (machineFormat) {
lastTask = lastTask.then((res) {
appendMessage(Map jsonMessage) {
- var message = json.stringify([jsonMessage]);
+ var message = JSON.encode([jsonMessage]);
if (shouldPrint) print(message);
res.messages.add(message);
}
« no previous file with comments | « no previous file | lib/observe/observable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698