Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: lib/runtime/dart/_isolate_helper.js

Issue 1348453004: fix some errors in our SDK, mostly around numbers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/runtime/dart/_interceptors.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/_interceptors.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698