Implement process.crash() on Windows.
This commit is contained in:
parent
fecaa7b75a
commit
ca389edc38
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "common/api/atom_bindings.h"
|
||||
|
||||
#include "base/debug/debugger.h"
|
||||
#include "base/logging.h"
|
||||
#include "vendor/node/src/node.h"
|
||||
|
||||
|
@ -74,7 +75,7 @@ v8::Handle<v8::Value> AtomBindings::Binding(const v8::Arguments& args) {
|
|||
|
||||
// static
|
||||
v8::Handle<v8::Value> AtomBindings::Crash(const v8::Arguments& args) {
|
||||
__builtin_trap();
|
||||
base::debug::BreakDebugger();
|
||||
return v8::Undefined();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue