8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6dae74 commit fb91ee4Copy full SHA for fb91ee4
test/v8-updates/test-trace-gc-flag.js
@@ -19,15 +19,11 @@ const fixtures = require('../common/fixtures');
19
const lines = splitByLine(output);
20
21
const scavengeRegex = /\bScavenge\b/;
22
- const expectedOutput = [
23
- scavengeRegex,
24
25
26
27
- /\bMark-Compact\b/,
28
- ];
+ const eofRegex = /\bMark-Compact\b/;
+
29
lines.forEach((line, index) => {
30
- assert.match(line, expectedOutput[index]);
+ const expected = index !== lines.length - 1 ? scavengeRegex : eofRegex;
+ assert.match(line, expected);
31
});
32
}
33
0 commit comments