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

Unified Diff: pkg/polymer/lib/src/messages.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/src/messages.dart
diff --git a/pkg/polymer/lib/src/messages.dart b/pkg/polymer/lib/src/messages.dart
index 5dc62475fe0279207e9abe9ce0e4af461417cf77..b0a5ebdc7bd4cd36408129559278abb2896bf8ff 100644
--- a/pkg/polymer/lib/src/messages.dart
+++ b/pkg/polymer/lib/src/messages.dart
@@ -4,7 +4,7 @@
library messages;
-import 'dart:json' as json;
+import 'dart:convert';
import 'package:barback/barback.dart' show TransformLogger;
import 'package:source_maps/span.dart' show Span;
@@ -54,7 +54,7 @@ class Message {
String toJson() {
if (span == null) return toString();
- return json.stringify([{
+ return JSON.encode([{
'method': kind,
'params': {
'file': span.sourceUrl,

Powered by Google App Engine
This is Rietveld 408576698