Index: pkg/browser/lib/interop.js |
diff --git a/pkg/browser/lib/interop.js b/pkg/browser/lib/interop.js |
index 40e1700ad76d53fe7d69ec4819c10387678d1789..2a675bae1238ba094ee630e1cd77d3fd179a57fe 100644 |
--- a/pkg/browser/lib/interop.js |
+++ b/pkg/browser/lib/interop.js |
@@ -336,6 +336,7 @@ function DartProxy(o) { |
// - sendport -> sendport |
// - Function -> [ 'funcref', function-id, sendport ] |
// - Object -> [ 'objref', object-id, sendport ] |
+ // - Array -> [ 'arrayref', object-id, sendport ] |
function serialize(message) { |
if (message == null) { |
return null; // Convert undefined to null. |
@@ -364,7 +365,7 @@ function DartProxy(o) { |
return [ 'objref', message.id, message.port ]; |
} else { |
// Local object proxy. |
- return [ 'objref', |
+ return [ message instanceof Array ? 'arrayref' : 'objref', |
proxiedObjectTable.add(message), |
proxiedObjectTable.sendPort ]; |
} |