mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
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:
parent
4c1b8760f6
commit
02a985dfb6
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user