Skip to content

Commit 47d311b

Browse files
starkwangtargos
authored andcommitted
lib: remove outdated optimizations
PR-URL: #27380 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Benedikt Meurer <benedikt.meurer@gmail.com>
1 parent 51fc672 commit 47d311b

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎lib/internal/process/task_queues.js‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ function processTicksAndRejections() {
9393

9494
classTickObject{
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‎

Lines changed: 0 additions & 3 deletions
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)