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

Unified Diff: lib/src/messages.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 | « lib/src/html_css_fixup.dart ('k') | lib/src/utils_observe.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/messages.dart
diff --git a/lib/src/messages.dart b/lib/src/messages.dart
index 120d5560c9b4cecff920fd28c6c44d2e55ae4e2e..57052ff95b997037bb61cb8998b732ff8fb4d747 100644
--- a/lib/src/messages.dart
+++ b/lib/src/messages.dart
@@ -4,7 +4,7 @@
library messages;
-import 'dart:json' as json;
+import 'dart:convert';
import 'package:source_maps/span.dart' show Span;
import 'package:logging/logging.dart' show Level;
@@ -53,7 +53,7 @@ class Message {
String toJson() {
if (span == null) return toString();
- return json.stringify([{
+ return JSON.encode([{
'method': kind,
'params': {
'file': span.sourceUrl,
« no previous file with comments | « lib/src/html_css_fixup.dart ('k') | lib/src/utils_observe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698