mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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:
1 parent
4bc366fc16
commit
8e182e561f
16 files changed
+32
-60
No files matched your search
@@ -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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user