refactor: use public node::CallbackScope where possible (#27001)

* refactor: use public node::CallbackScope where possible

* Remove unused node_env() getter
This commit is contained in:
Shelley Vohr 2020-12-15 11:39:25 -08:00 committed by GitHub
parent 21024011d7
commit b266b5208a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View file

@ -113,9 +113,8 @@ void ElectronBindings::OnCallNextTick(uv_async_t* handle) {
gin_helper::Locker locker(env->isolate());
v8::Context::Scope context_scope(env->context());
v8::HandleScope handle_scope(env->isolate());
node::InternalCallbackScope scope(env, v8::Object::New(env->isolate()),
{0, 0},
node::InternalCallbackScope::kNoFlags);
node::CallbackScope scope(env->isolate(), v8::Object::New(env->isolate()),
{0, 0});
}
self->pending_next_ticks_.clear();