We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c648959 commit bdd8165Copy full SHA for bdd8165
lib/internal/test_runner/mock/mock_timers.js
@@ -5,7 +5,6 @@ const {
5
} = require('internal/util');
6
7
const {
8
- ArrayPrototypeAt,
9
ArrayPrototypeForEach,
10
ArrayPrototypeIncludes,
11
DateNow,
@@ -137,7 +136,7 @@ class MockTimers {
137
136
},
138
async next() {
139
const result = await eventIt.next();
140
- const value = ArrayPrototypeAt(result.value, 0);
+ const value = result.value[0];
141
if (value?.aborted) {
142
iterator.return();
143
throw abortIt(options.signal);
0 commit comments