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:
parent
21024011d7
commit
b266b5208a
3 changed files with 4 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue