File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -279,11 +279,11 @@ ImmediateList.prototype.append = function(item) {
279
279
// Removes an item from the linked list, adjusting the pointers of adjacent
280
280
// items and the linked list's head or tail pointers as necessary
281
281
ImmediateList . prototype . remove = function ( item ) {
282
- if ( item . _idleNext !== null ) {
282
+ if ( item . _idleNext ) {
283
283
item . _idleNext . _idlePrev = item . _idlePrev ;
284
284
}
285
285
286
- if ( item . _idlePrev !== null ) {
286
+ if ( item . _idlePrev ) {
287
287
item . _idlePrev . _idleNext = item . _idleNext ;
288
288
}
289
289
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ function clearImmediate(immediate) {
283
283
toggleImmediateRef ( false ) ;
284
284
immediate [ kRefed ] = null ;
285
285
286
- if ( destroyHooksExist ( ) ) {
286
+ if ( destroyHooksExist ( ) && item [ async_id_symbol ] !== undefined ) {
287
287
emitDestroy ( immediate [ async_id_symbol ] ) ;
288
288
}
289
289
You can’t perform that action at this time.
0 commit comments