| Index: pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart
|
| diff --git a/pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart b/pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart
|
| index 28c03f801d486b4342a759857bedfe91c51c66e1..be2a25f3bd3bc98ebbbaa39707d0f1e5ea9e8603 100644
|
| --- a/pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart
|
| +++ b/pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart
|
| @@ -116,9 +116,11 @@ class _Serializer {
|
|
|
| serializeMap(InternalMap x) {
|
| Function serializeTearOff = serialize;
|
| - return ['map',
|
| - x.keys.map(serializeTearOff).toList(),
|
| - x.values.map(serializeTearOff).toList()];
|
| + return [
|
| + 'map',
|
| + x.keys.map(serializeTearOff).toList(),
|
| + x.values.map(serializeTearOff).toList()
|
| + ];
|
| }
|
|
|
| serializeJSObject(JSObject x) {
|
| @@ -191,20 +193,34 @@ class _Deserializer {
|
| if (x is! JSArray) throw new ArgumentError("Bad serialized message: $x");
|
|
|
| switch (x.first) {
|
| - case "ref": return deserializeRef(x);
|
| - case "buffer": return deserializeByteBuffer(x);
|
| - case "typed": return deserializeTypedData(x);
|
| - case "fixed": return deserializeFixed(x);
|
| - case "extendable": return deserializeExtendable(x);
|
| - case "mutable": return deserializeMutable(x);
|
| - case "const": return deserializeConst(x);
|
| - case "map": return deserializeMap(x);
|
| - case "sendport": return deserializeSendPort(x);
|
| - case "raw sendport": return deserializeRawSendPort(x);
|
| - case "js-object": return deserializeJSObject(x);
|
| - case "function": return deserializeClosure(x);
|
| - case "dart": return deserializeDartObject(x);
|
| - default: throw "couldn't deserialize: $x";
|
| + case "ref":
|
| + return deserializeRef(x);
|
| + case "buffer":
|
| + return deserializeByteBuffer(x);
|
| + case "typed":
|
| + return deserializeTypedData(x);
|
| + case "fixed":
|
| + return deserializeFixed(x);
|
| + case "extendable":
|
| + return deserializeExtendable(x);
|
| + case "mutable":
|
| + return deserializeMutable(x);
|
| + case "const":
|
| + return deserializeConst(x);
|
| + case "map":
|
| + return deserializeMap(x);
|
| + case "sendport":
|
| + return deserializeSendPort(x);
|
| + case "raw sendport":
|
| + return deserializeRawSendPort(x);
|
| + case "js-object":
|
| + return deserializeJSObject(x);
|
| + case "function":
|
| + return deserializeClosure(x);
|
| + case "dart":
|
| + return deserializeDartObject(x);
|
| + default:
|
| + throw "couldn't deserialize: $x";
|
| }
|
| }
|
|
|
| @@ -355,7 +371,7 @@ class _Deserializer {
|
| var emptyInstance = JS('', '#(#)', instanceFromClassId, classId);
|
| deserializedObjects.add(emptyInstance);
|
| deserializeArrayInPlace(fields);
|
| - return JS('', '#(#, #, #)',
|
| - initializeObject, classId, emptyInstance, fields);
|
| + return JS(
|
| + '', '#(#, #, #)', initializeObject, classId, emptyInstance, fields);
|
| }
|
| }
|
|
|