Every native class now gets a name
[platform/framework/web/crosswalk-tizen.git] / atom / browser / api / atom_api_desktop_capturer.cc
index 053efbd..1ff5aad 100644 (file)
@@ -100,6 +100,7 @@ mate::Handle<DesktopCapturer> DesktopCapturer::Create(v8::Isolate* isolate) {
 // static
 void DesktopCapturer::BuildPrototype(
     v8::Isolate* isolate, v8::Local<v8::FunctionTemplate> prototype) {
+  prototype->SetClassName(mate::StringToV8(isolate, "DesktopCapturer"));
   mate::ObjectTemplateBuilder(isolate, prototype->PrototypeTemplate())
       .SetMethod("startHandling", &DesktopCapturer::StartHandling);
 }