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

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

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 7 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
OLDNEW
1 var isolate; 1 var isolate;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class Capability extends core.Object { 4 class Capability extends core.Object {
5 Capability() { 5 Capability() {
6 return new _isolate_helper.CapabilityImpl(); 6 return new _isolate_helper.CapabilityImpl();
7 } 7 }
8 } 8 }
9 class IsolateSpawnException extends core.Object { 9 class IsolateSpawnException extends core.Object {
10 IsolateSpawnException(message) { 10 IsolateSpawnException(message) {
(...skipping 25 matching lines...) Expand all
36 return new async.Future$(Isolate).error(e, st); 36 return new async.Future$(Isolate).error(e, st);
37 } 37 }
38 38
39 } 39 }
40 static spawnUri(uri, args, message, opts) { 40 static spawnUri(uri, args, message, opts) {
41 let paused = opts && 'paused' in opts ? opts.paused : false; 41 let paused = opts && 'paused' in opts ? opts.paused : false;
42 let packageRoot = opts && 'packageRoot' in opts ? opts.packageRoot : null; 42 let packageRoot = opts && 'packageRoot' in opts ? opts.packageRoot : null;
43 if (packageRoot != null) 43 if (packageRoot != null)
44 throw new core.UnimplementedError("packageRoot"); 44 throw new core.UnimplementedError("packageRoot");
45 try { 45 try {
46 if (dart.is(args, core.List$(core.String))) { 46 if (dart.is(args, core.List)) {
47 for (let i = 0; dart.notNull(i) < dart.notNull(args[core.$length]); i = dart.notNull(i) + 1) { 47 for (let i = 0; dart.notNull(i) < dart.notNull(args[core.$length]); i = dart.notNull(i) + 1) {
48 if (!(typeof args[core.$get](i) == 'string')) { 48 if (!(typeof args[core.$get](i) == 'string')) {
49 throw new core.ArgumentError(`Args must be a list of Strings ${arg s}`); 49 throw new core.ArgumentError(`Args must be a list of Strings ${arg s}`);
50 } 50 }
51 } 51 }
52 } else if (args != null) { 52 } else if (args != null) {
53 throw new core.ArgumentError(`Args must be a list of Strings ${args}`) ; 53 throw new core.ArgumentError(`Args must be a list of Strings ${args}`) ;
54 } 54 }
55 return dart.as(_isolate_helper.IsolateNatives.spawnUri(uri, args, messag e, paused).then(msg => new Isolate(dart.as(dart.dindex(msg, 1), SendPort), {paus eCapability: dart.as(dart.dindex(msg, 2), Capability), terminateCapability: dart .as(dart.dindex(msg, 3), Capability)})), async.Future$(Isolate)); 55 return dart.as(_isolate_helper.IsolateNatives.spawnUri(uri, args, messag e, paused).then(msg => new Isolate(dart.as(dart.dindex(msg, 1), SendPort), {paus eCapability: dart.as(dart.dindex(msg, 2), Capability), terminateCapability: dart .as(dart.dindex(msg, 3), Capability)})), async.Future$(Isolate));
56 } catch (e) { 56 } catch (e) {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; 211 _RemoteStackTrace[dart.implements] = () => [core.StackTrace];
212 // Exports: 212 // Exports:
213 exports.Capability = Capability; 213 exports.Capability = Capability;
214 exports.IsolateSpawnException = IsolateSpawnException; 214 exports.IsolateSpawnException = IsolateSpawnException;
215 exports.Isolate = Isolate; 215 exports.Isolate = Isolate;
216 exports.SendPort = SendPort; 216 exports.SendPort = SendPort;
217 exports.ReceivePort = ReceivePort; 217 exports.ReceivePort = ReceivePort;
218 exports.RawReceivePort = RawReceivePort; 218 exports.RawReceivePort = RawReceivePort;
219 exports.RemoteError = RemoteError; 219 exports.RemoteError = RemoteError;
220 })(isolate || (isolate = {})); 220 })(isolate || (isolate = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698