timers: remove unnecessary allocation of _onTimeout

PR-URL: https://github.com/nodejs/node/pull/57497
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
This commit is contained in:
Gürgün Dayıoğlu 2025-03-20 09:44:44 +01:00 committed by GitHub
parent 4c1b8760f6
commit 02a985dfb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,9 +208,6 @@ class Timeout {
this._idlePrev = this;
this._idleNext = this;
this._idleStart = null;
// This must be set to null first to avoid function tracking
// on the hidden class, revisit in V8 versions after 6.2
this._onTimeout = null;
this._onTimeout = callback;
this._timerArgs = args;
this._repeat = isRepeat ? after : null;