OLD | NEW |
---|---|
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/d8.h" | 5 #include "src/d8.h" |
6 | 6 |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 | 9 |
10 | 10 |
11 void Shell::AddOSMethods(Isolate* isolate, Local<ObjectTemplate> os_templ) {} | 11 void Shell::AddOSMethods(Isolate* isolate, Local<ObjectTemplate> os_templ) {} |
12 | 12 |
13 void Shell::Exit(int exit_code) { | |
14 // Use _exit instead of exit to avoid races between isolate | |
Michael Achenbach
2016/11/04 10:40:44
This comment doesn't apply anymore.
Yang
2016/11/04 11:54:17
Done.
| |
15 // threads and static destructors. | |
16 fflush(stdout); | |
17 fflush(stderr); | |
18 TerminateProcess(GetCurrentProcess(), exit_code); | |
Michael Achenbach
2016/11/04 10:40:44
Do we have to wait for the process to exit? Simila
Yang
2016/11/04 11:54:17
good point.
brucedawson
2016/11/04 15:03:48
Actually, I'm pretty sure that other code is wrong
| |
19 } | |
13 | 20 |
14 } // namespace v8 | 21 } // namespace v8 |
OLD | NEW |