Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d4abd9d

Browse filesBrowse 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
Copy full SHA for d4abd9d

File tree

Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed
Open diff view settings
Collapse file

‎lib/internal/timers.js‎

Copy file name to clipboardExpand all lines: lib/internal/timers.js
-3Lines changed: 0 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.