Skip to content

Commit 9b84103

Browse files
gengjiawentargos
authored andcommitted
report: fix stderr matching for fatal error
PR-URL: #32699 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matheus Marchini <mat@mmarchini.me>
1 parent 9788b84 commit 9b84103

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/report/test-report-fatal-error.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ const ARGS = [
113113
assert.strictEqual(reports.length, 0);
114114

115115
const lines = child.stderr.split('\n');
116-
// Skip over unavoidable free-form output from V8.
117-
const report = lines[1];
116+
// Skip over unavoidable free-form output and gc log from V8.
117+
const report = lines.find((i) => i.startsWith('{'));
118118
const json = JSON.parse(report);
119119

120120
assert.strictEqual(json.header.threadId, null);

0 commit comments

Comments
 (0)