mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: use public node::CallbackScope where possible (#27028)
* refactor: use public node::CallbackScope where possible * Remove unused node_env() getter Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user