From 2f7c413199093852f07f462f41a61e4c6ea08739 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Thu, 12 Apr 2018 19:04:05 +0530 Subject: [PATCH] v8: set fatal error handler per isolate --- atom/common/api/atom_bindings.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);