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

Unified Diff: tools/dom/templates/html/impl/impl_Window.darttemplate

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: tools/dom/templates/html/impl/impl_Window.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Window.darttemplate b/tools/dom/templates/html/impl/impl_Window.darttemplate
index a4e2195cefc1173e9a68237ef873ad02f238ad22..b797f0be5aa8135de3d2ad274f09125fa5eca046 100644
--- a/tools/dom/templates/html/impl/impl_Window.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Window.darttemplate
@@ -32,7 +32,7 @@ $endif
if (portStr == null) {
return null;
}
- var port = json.parse(portStr);
+ var port = JSON.decode(portStr);
return _deserialize(port);
}
@@ -44,7 +44,7 @@ $endif
void registerPort(String name, var port) {
var serialized = _serialize(port);
document.documentElement.attributes['dart-port:$name'] =
- json.stringify(serialized);
+ JSON.encode(serialized);
}
/**

Powered by Google App Engine
This is Rietveld 408576698