Skip to content

Commit d4abd9d

Browse files
gurgundayaduh95
authored andcommitted
timers: remove unnecessary allocation of _onTimeout
PR-URL: #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>
1 parent ee60254 commit d4abd9d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/internal/timers.js

-3
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ class Timeout {
208208
this._idlePrev = this;
209209
this._idleNext = this;
210210
this._idleStart = null;
211-
// This must be set to null first to avoid function tracking
212-
// on the hidden class, revisit in V8 versions after 6.2
213-
this._onTimeout = null;
214211
this._onTimeout = callback;
215212
this._timerArgs = args;
216213
this._repeat = isRepeat ? after : null;

0 commit comments

Comments
 (0)