Skip to content

Commit

Permalink
fixup! test_runner: add initial draft for fakeTimers
Browse files Browse the repository at this point in the history
  • Loading branch information
atlowChemi committed Sep 14, 2023
1 parent c648959 commit bdd8165
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/internal/test_runner/mock/mock_timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const {
} = require('internal/util');

const {
ArrayPrototypeAt,
ArrayPrototypeForEach,
ArrayPrototypeIncludes,
DateNow,
Expand Down Expand Up @@ -137,7 +136,7 @@ class MockTimers {
},
async next() {
const result = await eventIt.next();
const value = ArrayPrototypeAt(result.value, 0);
const value = result.value[0];
if (value?.aborted) {
iterator.return();
throw abortIt(options.signal);
Expand Down

0 comments on commit bdd8165

Please sign in to comment.