mirror of
https://github.com/electron/electron.git
synced 2026-01-15 02:18:18 -05: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