v8: set fatal error handler per isolate

This commit is contained in:
deepak1556 2018-04-12 19:04:05 +05:30 committed by Samuel Attard
parent 66058c8cfe
commit 2f7c413199

View file

@ -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);