Index: tools/dom/templates/html/dartium/html_dartium.darttemplate |
diff --git a/tools/dom/templates/html/dartium/html_dartium.darttemplate b/tools/dom/templates/html/dartium/html_dartium.darttemplate |
index 8aeace07493b6b9701f3c868aaa5288e04cc54bb..a1acd885d1dd0cf74e94ff31296dfd60410e09bb 100644 |
--- a/tools/dom/templates/html/dartium/html_dartium.darttemplate |
+++ b/tools/dom/templates/html/dartium/html_dartium.darttemplate |
@@ -18,7 +18,7 @@ import 'dart:_collection-dev' hide Symbol, deprecated; |
import 'dart:html_common'; |
import 'dart:indexed_db'; |
import 'dart:isolate'; |
-import 'dart:json' as json; |
+import "dart:convert"; |
import 'dart:math'; |
// TODO(vsm): Remove this when we can do the proper checking in |
// native code for custom elements. |
@@ -113,7 +113,7 @@ var _callPortLastResult = null; |
_callPortSync(num id, var message) { |
if (!_callPortInitialized) { |
window.on['js-result'].listen((event) { |
- _callPortLastResult = json.parse(_getPortSyncEventData(event)); |
+ _callPortLastResult = JSON.decode(_getPortSyncEventData(event)); |
}); |
_callPortInitialized = true; |
} |