mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-05 08:49:32 +08:00
Implement process.crash() on Windows.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user