| OLD | NEW |
| 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 IsolateNatives, | 9 IsolateNatives, |
| 10 ReceivePortImpl, | 10 ReceivePortImpl, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 @patch | 70 @patch |
| 71 static Future<Isolate> spawnUri( | 71 static Future<Isolate> spawnUri( |
| 72 Uri uri, List<String> args, var message, | 72 Uri uri, List<String> args, var message, |
| 73 {bool paused: false, | 73 {bool paused: false, |
| 74 SendPort onExit, | 74 SendPort onExit, |
| 75 SendPort onError, | 75 SendPort onError, |
| 76 bool errorsAreFatal, | 76 bool errorsAreFatal, |
| 77 bool checked, | 77 bool checked, |
| 78 Map<String, String> environment, | 78 Map<String, String> environment, |
| 79 Uri packageRoot, | 79 Uri packageRoot, |
| 80 Map<String, Uri> packages}) { | 80 Map<String, Uri> packageMap}) { |
| 81 if (environment != null) throw new UnimplementedError("environment"); | 81 if (environment != null) throw new UnimplementedError("environment"); |
| 82 if (packageRoot != null) throw new UnimplementedError("packageRoot"); | 82 if (packageRoot != null) throw new UnimplementedError("packageRoot"); |
| 83 if (packages != null) throw new UnimplementedError("packages"); | 83 if (packageMap != null) throw new UnimplementedError("packageMap"); |
| 84 bool forcePause = (errorsAreFatal != null) || | 84 bool forcePause = (errorsAreFatal != null) || |
| 85 (onExit != null) || | 85 (onExit != null) || |
| 86 (onError != null); | 86 (onError != null); |
| 87 try { | 87 try { |
| 88 if (args is List<String>) { | 88 if (args is List<String>) { |
| 89 for (int i = 0; i < args.length; i++) { | 89 for (int i = 0; i < args.length; i++) { |
| 90 if (args[i] is! String) { | 90 if (args[i] is! String) { |
| 91 throw new ArgumentError("Args must be a list of Strings $args"); | 91 throw new ArgumentError("Args must be a list of Strings $args"); |
| 92 } | 92 } |
| 93 } | 93 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 factory RawReceivePort([void handler(event)]) { | 220 factory RawReceivePort([void handler(event)]) { |
| 221 return new RawReceivePortImpl(handler); | 221 return new RawReceivePortImpl(handler); |
| 222 } | 222 } |
| 223 } | 223 } |
| 224 | 224 |
| 225 @patch | 225 @patch |
| 226 class Capability { | 226 class Capability { |
| 227 @patch | 227 @patch |
| 228 factory Capability() = CapabilityImpl; | 228 factory Capability() = CapabilityImpl; |
| 229 } | 229 } |
| OLD | NEW |