diff --git a/atom/common/api/atom_bindings.cc b/atom/common/api/atom_bindings.cc index 22669b4a8713..ee02ed3f6a28 100644 --- a/atom/common/api/atom_bindings.cc +++ b/atom/common/api/atom_bindings.cc @@ -47,7 +47,7 @@ AtomBindings::~AtomBindings() { } void AtomBindings::BindTo(v8::Isolate* isolate, v8::Local process) { - v8::V8::SetFatalErrorHandler(FatalErrorCallback); + isolate->SetFatalErrorHandler(FatalErrorCallback); mate::Dictionary dict(isolate, process); dict.SetMethod("crash", &AtomBindings::Crash);