chore: convert more module and helper files from bind (#18069)

This commit is contained in:
Shelley Vohr 2019-05-02 08:32:33 -07:00 committed by GitHub
parent 2dd108e9c9
commit 55a7f92297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 42 additions and 40 deletions

View file

@ -163,7 +163,7 @@ void Initialize(v8::Local<v8::Object> exports,
void* priv) {
v8::Isolate* isolate = context->GetIsolate();
mate::Dictionary dict(isolate, exports);
dict.Set("createScreen", base::Bind(&Screen::Create, isolate));
dict.Set("createScreen", base::BindRepeating(&Screen::Create, isolate));
dict.Set(
"Screen",
Screen::GetConstructor(isolate)->GetFunction(context).ToLocalChecked());