| 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);
|
| }
|
|
|
| /**
|
|
|