Skip to content

Commit 9b84103

Browse files
gengjiawentargos
authored andcommitted
report: fix stderr matching for fatal error
PR-URL: #32699 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matheus Marchini <[email protected]>
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

+2-2
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)