src: remove unnecessary Environment::GetCurrent() calls

PR-URL: https://github.com/nodejs/node/pull/59814
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
This commit is contained in:
Moonki Choi authored and Antoine du Hamel committed 2025-10-11 20:49:13 +02:00
1 parent 4bc366fc16
commit 8e182e561f
16 files changed
+32 -60

No files matched your search

+1 -2
View File
@@ -129,8 +129,7 @@ void PromiseRejectCallback(PromiseRejectMessage message) {
namespace task_queue {
static void EnqueueMicrotask(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
Isolate* isolate = env->isolate();
Isolate* isolate = args.GetIsolate();
CHECK(args[0]->IsFunction());