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

Side by Side Diff: sdk/lib/_internal/compiler/js_lib/isolate_patch.dart

Issue 439723004: Specify packageRoot parameter to Isolate.spawnUri. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | sdk/lib/isolate/isolate.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Patch file for the dart:isolate library. 5 // Patch file for the dart:isolate library.
6 6
7 import 'dart:_js_helper' show patch; 7 import 'dart:_js_helper' show patch;
8 import 'dart:_isolate_helper' show CapabilityImpl, 8 import 'dart:_isolate_helper' show CapabilityImpl,
9 CloseToken, 9 CloseToken,
10 IsolateNatives, 10 IsolateNatives,
(...skipping 11 matching lines...) Expand all
22 .then((msg) => new Isolate(msg[1], 22 .then((msg) => new Isolate(msg[1],
23 pauseCapability: msg[2], 23 pauseCapability: msg[2],
24 terminateCapability: msg[3])); 24 terminateCapability: msg[3]));
25 } catch (e, st) { 25 } catch (e, st) {
26 return new Future<Isolate>.error(e, st); 26 return new Future<Isolate>.error(e, st);
27 } 27 }
28 } 28 }
29 29
30 @patch 30 @patch
31 static Future<Isolate> spawnUri( 31 static Future<Isolate> spawnUri(
32 Uri uri, List<String> args, var message, { bool paused: false }) { 32 Uri uri, List<String> args, var message, { bool paused: false,
33 Uri packageRoot }) {
34 if (packageRoot != null) throw new UnimplementedError("packageRoot");
33 try { 35 try {
34 if (args is List<String>) { 36 if (args is List<String>) {
35 for (int i = 0; i < args.length; i++) { 37 for (int i = 0; i < args.length; i++) {
36 if (args[i] is! String) { 38 if (args[i] is! String) {
37 throw new ArgumentError("Args must be a list of Strings $args"); 39 throw new ArgumentError("Args must be a list of Strings $args");
38 } 40 }
39 } 41 }
40 } else if (args != null) { 42 } else if (args != null) {
41 throw new ArgumentError("Args must be a list of Strings $args"); 43 throw new ArgumentError("Args must be a list of Strings $args");
42 } 44 }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 factory RawReceivePort([void handler(event)]) { 144 factory RawReceivePort([void handler(event)]) {
143 return new RawReceivePortImpl(handler); 145 return new RawReceivePortImpl(handler);
144 } 146 }
145 } 147 }
146 148
147 @patch 149 @patch
148 class Capability { 150 class Capability {
149 @patch 151 @patch
150 factory Capability() = CapabilityImpl; 152 factory Capability() = CapabilityImpl;
151 } 153 }
OLDNEW
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | sdk/lib/isolate/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698