v8: set fatal error handler per isolate
This commit is contained in:
parent
66058c8cfe
commit
2f7c413199
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ AtomBindings::~AtomBindings() {
|
|||
}
|
||||
|
||||
void AtomBindings::BindTo(v8::Isolate* isolate, v8::Local<v8::Object> process) {
|
||||
v8::V8::SetFatalErrorHandler(FatalErrorCallback);
|
||||
isolate->SetFatalErrorHandler(FatalErrorCallback);
|
||||
|
||||
mate::Dictionary dict(isolate, process);
|
||||
dict.SetMethod("crash", &AtomBindings::Crash);
|
||||
|
|
Loading…
Reference in a new issue