Skip to content

Commit 04cf1d6

Browse files
committed
lint
1 parent f708f03 commit 04cf1d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/main/test_runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function runTestFile(path) {
117117

118118
child.stdout.setEncoding('utf8');
119119
child.stderr.setEncoding('utf8');
120-
const [{ code, signal }, stdout, stderr] = await PromiseAll(new SafeArrayIterator([
120+
const { 0: { code, signal }, 1: stdout, 2: stderr } = await PromiseAll(new SafeArrayIterator([
121121
once(child, 'exit', { signal: t.signal }),
122122
child.stdout.toArray({ signal: t.signal }),
123123
child.stderr.toArray({ signal: t.signal }),

lib/internal/test_runner/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class Test extends AsyncResource {
355355
// TODO(MoLow): adjust whenever this is resolved https://github.com/nodejs/node/issues/37220
356356
const abortPromise = once(this.signal, 'abort');
357357
const { args, ctx } = this.getRunArgs();
358-
ArrayPrototypeUnshift(args, this.fn, ctx);
358+
ArrayPrototypeUnshift(args, this.fn, ctx);
359359

360360
if (this.fn.length === args.length - 1) {
361361
// This test is using legacy Node.js error first callbacks.
@@ -375,7 +375,7 @@ class Test extends AsyncResource {
375375
}
376376
} else {
377377
// This test is synchronous or using Promises.
378-
const promise = ReflectApply(this.runInAsyncScope, this, args);
378+
const promise = ReflectApply(this.runInAsyncScope, this, args);
379379
await PromiseRace([promise, abortPromise]);
380380
}
381381

0 commit comments

Comments
 (0)