d8-windows.cc 521 Bytes
Newer Older
1
// Copyright 2009 the V8 project authors. All rights reserved.
2 3
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
4

5
#include "src/d8.h"
6 7 8 9 10


namespace v8 {


11
void Shell::AddOSMethods(Isolate* isolate, Local<ObjectTemplate> os_templ) {}
12

13 14 15 16 17 18 19
void Shell::Exit(int exit_code) {
  // Use TerminateProcess avoid races between isolate threads and
  // static destructors.
  fflush(stdout);
  fflush(stderr);
  TerminateProcess(GetCurrentProcess(), exit_code);
}
20

21
}  // namespace v8