chore: convert more module and helper files from bind (#18069)
This commit is contained in:
parent
2dd108e9c9
commit
55a7f92297
10 changed files with 42 additions and 40 deletions
|
@ -140,7 +140,8 @@ void Initialize(v8::Local<v8::Object> exports,
|
|||
void* priv) {
|
||||
v8::Isolate* isolate = context->GetIsolate();
|
||||
mate::Dictionary dict(isolate, exports);
|
||||
dict.Set("createPowerMonitor", base::Bind(&PowerMonitor::Create, isolate));
|
||||
dict.Set("createPowerMonitor",
|
||||
base::BindRepeating(&PowerMonitor::Create, isolate));
|
||||
dict.Set("PowerMonitor", PowerMonitor::GetConstructor(isolate)
|
||||
->GetFunction(context)
|
||||
.ToLocalChecked());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue