Skip to content

Commit 57ba576

Browse files
committed
Fix bug with finding errors on stdout
1 parent 09db831 commit 57ba576

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/agentPool.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ function makePool(agentCount, hostType, hostArgs, hostPath) {
3030
.then(result => {
3131
pool.onNext(agent);
3232
test.rawResult = result;
33-
34-
const doneError = record.stdout.match(/^test262\/error (.*)$/gm);
33+
const doneError = result.stdout.match(/^test262\/error (.*)$/gm);
3534
if (doneError) {
3635
const lastErrorString = doneError[doneError.length - 1];
3736
const errorMatch = lastErrorString.match(/test262\/error ([^:]+): (.*)/);

0 commit comments

Comments
 (0)