Index: lib/html/frog/html_frog.dart |
diff --git a/lib/html/frog/html_frog.dart b/lib/html/frog/html_frog.dart |
index 7d059b1ac4534e20bf2b190a1121ced7c948c45b..cc66a2431ce041de0f0c1cc07f55536bb6b91066 100644 |
--- a/lib/html/frog/html_frog.dart |
+++ b/lib/html/frog/html_frog.dart |
@@ -30,6 +30,7 @@ ElementList queryAll(String selector) => _document.queryAll(selector); |
class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" { |
} |
+// TODO(vsm): Move this to a separate Isolates.dart file. |
_serialize(var message) { |
// TODO(kasperl): Specialize the serializer. |
return new _Serializer().traverse(message); |
@@ -60,9 +61,7 @@ class _JsSendPortSync implements SendPortSync { |
} |
static _call(num id, var message) native @""" |
- var deserialized = _deserialize(message); |
- var result = ReceivePortSync.map[id].callback(deserialized); |
- return _serialize(result); |
+ return ReceivePortSync.dispatchCall(id, message); |
"""; |
} |