From ca389edc38ddf90d9e145b37882be84df2e93e25 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 1 Jul 2013 21:35:00 +0800 Subject: [PATCH] Implement process.crash() on Windows. --- common/api/atom_bindings.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/api/atom_bindings.cc b/common/api/atom_bindings.cc index 4b8e2e6..3570075 100644 --- a/common/api/atom_bindings.cc +++ b/common/api/atom_bindings.cc @@ -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 AtomBindings::Binding(const v8::Arguments& args) { // static v8::Handle AtomBindings::Crash(const v8::Arguments& args) { - __builtin_trap(); + base::debug::BreakDebugger(); return v8::Undefined(); } -- 2.7.4