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

Unified Diff: pkg/polymer/lib/component_build.dart

Issue 23596007: Remove usage of dart:json. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 7 years, 4 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
Index: pkg/polymer/lib/component_build.dart
diff --git a/pkg/polymer/lib/component_build.dart b/pkg/polymer/lib/component_build.dart
index 316124eb45feb2614fb2f3e12b31841d9e559988..478018e873eff95d8b99f99bc99d09319877ea8f 100644
--- a/pkg/polymer/lib/component_build.dart
+++ b/pkg/polymer/lib/component_build.dart
@@ -19,8 +19,8 @@
library build_utils;
import 'dart:async';
+import 'dart:convert';
import 'dart:io';
-import 'dart:json' as json;
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);
}

Powered by Google App Engine
This is Rietveld 408576698