Skip to content

Commit bdd8165

Browse files
committed
fixup! test_runner: add initial draft for fakeTimers
1 parent c648959 commit bdd8165

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/test_runner/mock/mock_timers.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const {
55
} = require('internal/util');
66

77
const {
8-
ArrayPrototypeAt,
98
ArrayPrototypeForEach,
109
ArrayPrototypeIncludes,
1110
DateNow,
@@ -137,7 +136,7 @@ class MockTimers {
137136
},
138137
async next() {
139138
const result = await eventIt.next();
140-
const value = ArrayPrototypeAt(result.value, 0);
139+
const value = result.value[0];
141140
if (value?.aborted) {
142141
iterator.return();
143142
throw abortIt(options.signal);

0 commit comments

Comments
 (0)