Skip to content

Commit 9f21fd4

Browse files
gurgundayaduh95
authored andcommitted
timers: remove unnecessary allocation of _onTimeout
PR-URL: #57497 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
1 parent b8eac27 commit 9f21fd4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/internal/timers.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,6 @@ class Timeout {
188188
this._idlePrev = this;
189189
this._idleNext = this;
190190
this._idleStart = null;
191-
// This must be set to null first to avoid function tracking
192-
// on the hidden class, revisit in V8 versions after 6.2
193-
this._onTimeout = null;
194191
this._onTimeout = callback;
195192
this._timerArgs = args;
196193
this._repeat = isRepeat ? after : null;

0 commit comments

Comments
 (0)