BuildPrototype should not be empty
authorCheng Zhao <zcbenz@gmail.com>
Mon, 25 Apr 2016 03:24:11 +0000 (12:24 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 25 Apr 2016 03:24:11 +0000 (12:24 +0900)
atom/browser/api/atom_api_power_monitor.cc

index 15220c1..32c50c6 100644 (file)
@@ -53,6 +53,7 @@ v8::Local<v8::Value> PowerMonitor::Create(v8::Isolate* isolate) {
 // static
 void PowerMonitor::BuildPrototype(
     v8::Isolate* isolate, v8::Local<v8::ObjectTemplate> prototype) {
+  mate::ObjectTemplateBuilder(isolate, prototype);
 }
 
 }  // namespace api