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

Side by Side Diff: test/codegen/expect/dart/isolate.js

Issue 977153002: Fix increment on nullable (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove assignments Created 5 years, 9 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 | « test/codegen/expect/dart/core.js ('k') | test/codegen/expect/sunflower.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 var isolate; 1 var isolate;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class IsolateSpawnException extends dart.Object { 4 class IsolateSpawnException extends dart.Object {
5 IsolateSpawnException(message) { 5 IsolateSpawnException(message) {
6 this.message = message; 6 this.message = message;
7 } 7 }
8 toString() { 8 toString() {
9 return `IsolateSpawnException: ${this.message}`; 9 return `IsolateSpawnException: ${this.message}`;
10 } 10 }
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 } 33 }
34 static spawnUri(uri, args, message, opt$) { 34 static spawnUri(uri, args, message, opt$) {
35 let paused = opt$.paused === void 0 ? false : opt$.paused; 35 let paused = opt$.paused === void 0 ? false : opt$.paused;
36 let packageRoot = opt$.packageRoot === void 0 ? null : opt$.packageRoot; 36 let packageRoot = opt$.packageRoot === void 0 ? null : opt$.packageRoot;
37 if (packageRoot !== null) 37 if (packageRoot !== null)
38 throw new core.UnimplementedError("packageRoot"); 38 throw new core.UnimplementedError("packageRoot");
39 try { 39 try {
40 if (dart.is(args, core.List$(core.String))) { 40 if (dart.is(args, core.List$(core.String))) {
41 for (let i = 0; dart.notNull(i) < dart.notNull(args.length); dart.notN ull(i)++) { 41 for (let i = 0; dart.notNull(i) < dart.notNull(args.length); i = dart. notNull(i) + 1) {
42 if (!(typeof args.get(i) == string)) { 42 if (!(typeof args.get(i) == string)) {
43 throw new core.ArgumentError(`Args must be a list of Strings ${arg s}`); 43 throw new core.ArgumentError(`Args must be a list of Strings ${arg s}`);
44 } 44 }
45 } 45 }
46 } else if (args !== null) { 46 } else if (args !== null) {
47 throw new core.ArgumentError(`Args must be a list of Strings ${args}`) ; 47 throw new core.ArgumentError(`Args must be a list of Strings ${args}`) ;
48 } 48 }
49 return dart.as(_isolate_helper.IsolateNatives.spawnUri(uri, args, messag e, paused).then((msg) => new Isolate(dart.as(dart.dindex(msg, 1), SendPort), {pa useCapability: dart.as(dart.dindex(msg, 2), Capability), terminateCapability: da rt.as(dart.dindex(msg, 3), Capability)})), async.Future$(Isolate)); 49 return dart.as(_isolate_helper.IsolateNatives.spawnUri(uri, args, messag e, paused).then((msg) => new Isolate(dart.as(dart.dindex(msg, 1), SendPort), {pa useCapability: dart.as(dart.dindex(msg, 2), Capability), terminateCapability: da rt.as(dart.dindex(msg, 3), Capability)})), async.Future$(Isolate));
50 } catch (e) { 50 } catch (e) {
51 let st = dart.stackTrace(e); 51 let st = dart.stackTrace(e);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 202 }
203 // Exports: 203 // Exports:
204 exports.IsolateSpawnException = IsolateSpawnException; 204 exports.IsolateSpawnException = IsolateSpawnException;
205 exports.Isolate = Isolate; 205 exports.Isolate = Isolate;
206 exports.SendPort = SendPort; 206 exports.SendPort = SendPort;
207 exports.ReceivePort = ReceivePort; 207 exports.ReceivePort = ReceivePort;
208 exports.RawReceivePort = RawReceivePort; 208 exports.RawReceivePort = RawReceivePort;
209 exports.RemoteError = RemoteError; 209 exports.RemoteError = RemoteError;
210 exports.Capability = Capability; 210 exports.Capability = Capability;
211 })(isolate || (isolate = {})); 211 })(isolate || (isolate = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/dart/core.js ('k') | test/codegen/expect/sunflower.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698