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

Side by Side Diff: runtime/bin/process.dart

Issue 10879033: Move exit from the builtin library to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/bin/builtin.dart ('k') | runtime/bin/process_impl.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 /** Exit the Dart VM process with the given [status] code. */
6 void exit(int status) {
7 if (status is !int) {
8 throw new IllegalArgumentException("int status expected");
9 }
10 _exit(status);
11 }
12
5 /** 13 /**
6 * [Process] is used to start new processes using the static 14 * [Process] is used to start new processes using the static
7 * [start] and [run] methods. 15 * [start] and [run] methods.
8 */ 16 */
9 class Process { 17 class Process {
10 /** 18 /**
11 * Starts a process running the [executable] with the specified 19 * Starts a process running the [executable] with the specified
12 * [arguments]. Returns a [Process] instance that can be used to 20 * [arguments]. Returns a [Process] instance that can be used to
13 * interact with the process. 21 * interact with the process.
14 * 22 *
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 /** 235 /**
228 * Contains the system message for the process exception if any. 236 * Contains the system message for the process exception if any.
229 */ 237 */
230 final String message; 238 final String message;
231 239
232 /** 240 /**
233 * Contains the OS error code for the process exception if any. 241 * Contains the OS error code for the process exception if any.
234 */ 242 */
235 final int errorCode; 243 final int errorCode;
236 } 244 }
OLDNEW
« no previous file with comments | « runtime/bin/builtin.dart ('k') | runtime/bin/process_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698