diff --git a/atom/browser/api/event_emitter.cc b/atom/browser/api/event_emitter.cc index aa0b6c8781a3..be7018dafa44 100644 --- a/atom/browser/api/event_emitter.cc +++ b/atom/browser/api/event_emitter.cc @@ -56,7 +56,7 @@ v8::Local EventEmitter::CreateJSEvent( v8::Local EventEmitter::CreateCustomEvent( v8::Isolate* isolate, v8::Local custom_event) { v8::Local event = CreateEventObject(isolate); - event->SetPrototype(custom_event->CreationContext(), custom_event); + (void)event->SetPrototype(custom_event->CreationContext(), custom_event); mate::Dictionary(isolate, event).Set("sender", GetWrapper(isolate)); return event; }