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

Unified Diff: tools/dom/src/Isolates.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « tools/dom/src/CssClassSet.dart ('k') | tools/dom/src/KeyboardEventController.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/Isolates.dart
diff --git a/tools/dom/src/Isolates.dart b/tools/dom/src/Isolates.dart
index 7fbf3d4537afec62da00d8efe69e7168fcae7c75..5bdf35bb22d4ff44bc36b76163053cc6f567349c 100644
--- a/tools/dom/src/Isolates.dart
+++ b/tools/dom/src/Isolates.dart
@@ -95,7 +95,7 @@ class _RemoteSendPortSync implements SendPortSync {
var source = '$target-result';
var result = null;
var listener = (Event e) {
- result = JSON.parse(_getPortSyncEventData(e));
+ result = json.parse(_getPortSyncEventData(e));
};
window.on[source].add(listener);
_dispatchEvent(target, [source, message]);
@@ -167,7 +167,7 @@ class ReceivePortSync {
_callback = callback;
if (_listener == null) {
_listener = (Event e) {
- var data = JSON.parse(_getPortSyncEventData(e));
+ var data = json.parse(_getPortSyncEventData(e));
var replyTo = data[0];
var message = _deserialize(data[1]);
var result = _callback(message);
@@ -198,7 +198,7 @@ class ReceivePortSync {
get _isolateId => ReceivePortSync._isolateId;
void _dispatchEvent(String receiver, var message) {
- var event = new CustomEvent(receiver, false, false, JSON.stringify(message));
+ var event = new CustomEvent(receiver, false, false, json.stringify(message));
window.$dom_dispatchEvent(event);
}
« no previous file with comments | « tools/dom/src/CssClassSet.dart ('k') | tools/dom/src/KeyboardEventController.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698