Index: tools/dom/templates/html/dart2js/impl_Window.darttemplate |
diff --git a/tools/dom/templates/html/dart2js/impl_Window.darttemplate b/tools/dom/templates/html/dart2js/impl_Window.darttemplate |
index dbe3849fe845909dc74b3b6107fade5d7f627320..93f988485ffab5e17a94a63ea9d88bfa097d4038 100644 |
--- a/tools/dom/templates/html/dart2js/impl_Window.darttemplate |
+++ b/tools/dom/templates/html/dart2js/impl_Window.darttemplate |
@@ -143,7 +143,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { |
* registered under [name]. |
*/ |
SendPortSync lookupPort(String name) { |
- var port = JSON.parse(document.documentElement.attributes['dart-port:$name']); |
+ var port = json.parse(document.documentElement.attributes['dart-port:$name']); |
return _deserialize(port); |
} |
@@ -154,7 +154,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { |
*/ |
void registerPort(String name, var port) { |
var serialized = _serialize(port); |
- document.documentElement.attributes['dart-port:$name'] = JSON.stringify(serialized); |
+ document.documentElement.attributes['dart-port:$name'] = json.stringify(serialized); |
} |
/// @domName Window.console; @docsEditable true |