Index: client/dart.js |
=================================================================== |
--- client/dart.js (revision 9437) |
+++ client/dart.js (working copy) |
@@ -53,6 +53,8 @@ |
typeof(message) == 'number' || |
typeof(message) == 'boolean') { |
return message; |
+ } else if (message instanceof Array) { |
+ return [ 'list', message.length, message ]; |
vsm
2012/07/06 13:48:16
Hmm. The elements of message should be serialized
sammccall
2012/07/06 16:01:41
Done.
|
} else if (message instanceof LocalSendPortSync) { |
return [ 'sendport', 'nativejs', message.receivePort.id ]; |
} else if (message instanceof DartSendPortSync) { |
@@ -83,6 +85,7 @@ |
switch (x[0]) { |
case 'map': return deserializeMap(x); |
case 'sendport': return deserializeSendPort(x); |
+ case 'list': return x[2]; |
vsm
2012/07/06 13:48:16
I think you need to deserialized the elements of t
sammccall
2012/07/06 16:01:41
Done.
|
default: throw 'unimplemented'; |
} |
} |