Skip to content

Commit 47d311b

Browse files
starkwangtargos
authored andcommitted
lib: remove outdated optimizations
PR-URL: #27380 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Benedikt Meurer <[email protected]>
1 parent 51fc672 commit 47d311b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lib/internal/process/task_queues.js

-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ function processTicksAndRejections() {
9393

9494
class TickObject {
9595
constructor(callback, args, triggerAsyncId) {
96-
// This must be set to null first to avoid function tracking
97-
// on the hidden class, revisit in V8 versions after 6.2
98-
this.callback = null;
9996
this.callback = callback;
10097
this.args = args;
10198

lib/timers.js

-3
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,6 @@ const Immediate = class Immediate {
207207
constructor(callback, args) {
208208
this._idleNext = null;
209209
this._idlePrev = null;
210-
// This must be set to null first to avoid function tracking
211-
// on the hidden class, revisit in V8 versions after 6.2
212-
this._onImmediate = null;
213210
this._onImmediate = callback;
214211
this._argv = args;
215212
this._destroyed = false;

0 commit comments

Comments
 (0)