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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/builtin.dart ('k') | runtime/bin/process_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.dart
diff --git a/runtime/bin/process.dart b/runtime/bin/process.dart
index 26eebd992c98cc2fbab5c480b0528c8d39f1d989..8acb42639ca08c2f3aa9cfda2c1d309ccf2306d7 100644
--- a/runtime/bin/process.dart
+++ b/runtime/bin/process.dart
@@ -2,6 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+/** Exit the Dart VM process with the given [status] code. */
+void exit(int status) {
+ if (status is !int) {
+ throw new IllegalArgumentException("int status expected");
+ }
+ _exit(status);
+}
+
/**
* [Process] is used to start new processes using the static
* [start] and [run] methods.
« 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