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

Unified Diff: runtime/bin/builtin_natives.cc

Issue 11665004: Add exitCode setter to set the exit code returned by the Dart VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Actually upload the correct patch Created 8 years 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 | « no previous file | runtime/bin/io_natives.cc » ('j') | runtime/bin/process.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_natives.cc
diff --git a/runtime/bin/builtin_natives.cc b/runtime/bin/builtin_natives.cc
index 8fedb2dd2420c797e649fff5563da3c1f6353c44..159cf25806a3ef121a23c6777b55df372ba3fe9e 100644
--- a/runtime/bin/builtin_natives.cc
+++ b/runtime/bin/builtin_natives.cc
@@ -24,7 +24,6 @@
V(Directory_Delete, 2) \
V(Directory_Rename, 2) \
V(Directory_NewServicePort, 0) \
- V(Exit, 1) \
V(File_Open, 2) \
V(File_Exists, 1) \
V(File_Close, 1) \
@@ -104,13 +103,3 @@ void FUNCTION_NAME(Logger_PrintString)(Dart_NativeArguments args) {
Builtin::PrintString(stdout, Dart_GetNativeArgument(args, 0));
Dart_ExitScope();
}
-
-
-void FUNCTION_NAME(Exit)(Dart_NativeArguments args) {
- Dart_EnterScope();
- int64_t status = 0;
- // Ignore result if passing invalid argument and just exit 0.
- DartUtils::GetInt64Value(Dart_GetNativeArgument(args, 0), &status);
- Dart_ExitScope();
- exit(static_cast<int>(status));
-}
« no previous file with comments | « no previous file | runtime/bin/io_natives.cc » ('j') | runtime/bin/process.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698