Implement process.crash() on Windows.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 1 Jul 2013 13:35:00 +0000 (21:35 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 1 Jul 2013 13:35:00 +0000 (21:35 +0800)
common/api/atom_bindings.cc

index 4b8e2e6..3570075 100644 (file)
@@ -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();
 }