From bb36a26950172815a66f34c5c8691bbd3e549977 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Wed, 11 Apr 2018 12:05:45 +0530 Subject: [PATCH] update native-mate ref --- atom/browser/api/event_emitter.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/atom/browser/api/event_emitter.cc b/atom/browser/api/event_emitter.cc index c1c17a55d9a..c6e810b5122 100644 --- a/atom/browser/api/event_emitter.cc +++ b/atom/browser/api/event_emitter.cc @@ -26,10 +26,11 @@ void PreventDefault(mate::Arguments* args) { // Create a pure JavaScript Event object. v8::Local CreateEventObject(v8::Isolate* isolate) { if (event_template.IsEmpty()) { - event_template.Reset(isolate, - ObjectTemplateBuilder(isolate) - .SetMethod("preventDefault", &PreventDefault) - .Build()); + event_template.Reset( + isolate, + ObjectTemplateBuilder(isolate, v8::ObjectTemplate::New(isolate)) + .SetMethod("preventDefault", &PreventDefault) + .Build()); } return v8::Local::New(isolate, event_template)