Every native class now gets a name
[platform/framework/web/crosswalk-tizen.git] / atom / browser / api / event.cc
index 874e30f..8810fed 100644 (file)
@@ -59,6 +59,7 @@ Handle<Event> Event::Create(v8::Isolate* isolate) {
 // static
 void Event::BuildPrototype(
     v8::Isolate* isolate, v8::Local<v8::FunctionTemplate> prototype) {
+  prototype->SetClassName(mate::StringToV8(isolate, "Event"));
   mate::ObjectTemplateBuilder(isolate, prototype->PrototypeTemplate())
       .SetMethod("preventDefault", &Event::PreventDefault)
       .SetMethod("sendReply", &Event::SendReply);