OLD | NEW |
1 dart_library.library('dart/_isolate_helper', null, /* Imports */[ | 1 dart_library.library('dart/_isolate_helper', null, /* Imports */[ |
2 "dart_runtime/dart", | 2 "dart_runtime/dart", |
3 'dart/core', | 3 'dart/core', |
4 'dart/_interceptors', | 4 'dart/_interceptors', |
5 'dart/_js_helper', | 5 'dart/_js_helper', |
6 'dart/isolate', | 6 'dart/isolate', |
7 'dart/_foreign_helper', | 7 'dart/_foreign_helper', |
8 'dart/collection', | 8 'dart/collection', |
9 'dart/async' | 9 'dart/async' |
10 ], /* Lazy imports */[ | 10 ], /* Lazy imports */[ |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 if (message === void 0) | 74 if (message === void 0) |
75 message = null; | 75 message = null; |
76 if (message == null) | 76 if (message == null) |
77 message = "Can't transmit:"; | 77 message = "Can't transmit:"; |
78 dart.throw(new core.UnsupportedError(`${message} ${x}`)); | 78 dart.throw(new core.UnsupportedError(`${message} ${x}`)); |
79 } | 79 } |
80 makeRef(serializationId) { | 80 makeRef(serializationId) { |
81 return ["ref", serializationId]; | 81 return ["ref", serializationId]; |
82 } | 82 } |
83 isPrimitive(x) { | 83 isPrimitive(x) { |
84 return x == null || typeof x == 'string' || dart.is(x, core.num) || typeof
x == 'boolean'; | 84 return x == null || typeof x == 'string' || typeof x == 'number' || typeof
x == 'boolean'; |
85 } | 85 } |
86 serializePrimitive(primitive) { | 86 serializePrimitive(primitive) { |
87 return primitive; | 87 return primitive; |
88 } | 88 } |
89 serializeByteBuffer(buffer) { | 89 serializeByteBuffer(buffer) { |
90 return ["buffer", buffer]; | 90 return ["buffer", buffer]; |
91 } | 91 } |
92 serializeTypedData(data) { | 92 serializeTypedData(data) { |
93 return ["typed", data]; | 93 return ["typed", data]; |
94 } | 94 } |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 { | 254 { |
255 return this.deserializeDartObject(x); | 255 return this.deserializeDartObject(x); |
256 } | 256 } |
257 default: | 257 default: |
258 { | 258 { |
259 dart.throw(`couldn't deserialize: ${x}`); | 259 dart.throw(`couldn't deserialize: ${x}`); |
260 } | 260 } |
261 } | 261 } |
262 } | 262 } |
263 isPrimitive(x) { | 263 isPrimitive(x) { |
264 return x == null || typeof x == 'string' || dart.is(x, core.num) || typeof
x == 'boolean'; | 264 return x == null || typeof x == 'string' || typeof x == 'number' || typeof
x == 'boolean'; |
265 } | 265 } |
266 deserializePrimitive(x) { | 266 deserializePrimitive(x) { |
267 return x; | 267 return x; |
268 } | 268 } |
269 deserializeRef(x) { | 269 deserializeRef(x) { |
270 dart.assert(dart.equals(dart.dindex(x, 0), 'ref')); | 270 dart.assert(dart.equals(dart.dindex(x, 0), 'ref')); |
271 let serializationId = dart.as(dart.dindex(x, 1), core.int); | 271 let serializationId = dart.as(dart.dindex(x, 1), core.int); |
272 return this.deserializedObjects[dartx.get](serializationId); | 272 return this.deserializedObjects[dartx.get](serializationId); |
273 } | 273 } |
274 deserializeByteBuffer(x) { | 274 deserializeByteBuffer(x) { |
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1560 exports.leaveJsAsync = leaveJsAsync; | 1560 exports.leaveJsAsync = leaveJsAsync; |
1561 exports.isWorker = isWorker; | 1561 exports.isWorker = isWorker; |
1562 exports.startRootIsolate = startRootIsolate; | 1562 exports.startRootIsolate = startRootIsolate; |
1563 exports.IsolateNatives = IsolateNatives; | 1563 exports.IsolateNatives = IsolateNatives; |
1564 exports.RawReceivePortImpl = RawReceivePortImpl; | 1564 exports.RawReceivePortImpl = RawReceivePortImpl; |
1565 exports.ReceivePortImpl = ReceivePortImpl; | 1565 exports.ReceivePortImpl = ReceivePortImpl; |
1566 exports.TimerImpl = TimerImpl; | 1566 exports.TimerImpl = TimerImpl; |
1567 exports.hasTimer = hasTimer; | 1567 exports.hasTimer = hasTimer; |
1568 exports.CapabilityImpl = CapabilityImpl; | 1568 exports.CapabilityImpl = CapabilityImpl; |
1569 }); | 1569 }); |
OLD | NEW |