| Index: tools/dom/templates/html/dartium/impl_Window.darttemplate
|
| diff --git a/tools/dom/templates/html/dartium/impl_Window.darttemplate b/tools/dom/templates/html/dartium/impl_Window.darttemplate
|
| index d463470cc7ccd1f812f7ea21d595143566350e15..286114d08cb09e742d337865a755151e8d2993cd 100644
|
| --- a/tools/dom/templates/html/dartium/impl_Window.darttemplate
|
| +++ b/tools/dom/templates/html/dartium/impl_Window.darttemplate
|
| @@ -21,7 +21,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| * registered under [name].
|
| */
|
| 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);
|
| }
|
|
|
| @@ -32,7 +32,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| */
|
| 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);
|
| }
|
|
|
| $!MEMBERS
|
|
|