report: fix stderr matching for fatal error
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
934ef43a62
commit
b82d72c199
@ -113,8 +113,8 @@ const ARGS = [
|
||||
assert.strictEqual(reports.length, 0);
|
||||
|
||||
const lines = child.stderr.split('\n');
|
||||
// Skip over unavoidable free-form output from V8.
|
||||
const report = lines[1];
|
||||
// Skip over unavoidable free-form output and gc log from V8.
|
||||
const report = lines.find((i) => i.startsWith('{'));
|
||||
const json = JSON.parse(report);
|
||||
|
||||
assert.strictEqual(json.header.threadId, null);
|
||||
|
Loading…
x
Reference in New Issue
Block a user