pm: throw when initialising module before ready event
This commit is contained in:
parent
29338e2fa4
commit
1f580cbb67
2 changed files with 11 additions and 5 deletions
|
@ -17,7 +17,7 @@ namespace api {
|
|||
class PowerMonitor : public mate::EventEmitter,
|
||||
public base::PowerObserver {
|
||||
public:
|
||||
static mate::Handle<PowerMonitor> Create(v8::Isolate* isolate);
|
||||
static v8::Handle<v8::Value> Create(v8::Isolate* isolate);
|
||||
|
||||
protected:
|
||||
PowerMonitor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue