lib: fix version check in tick processor
Introduced in 70832bc3538 ("build: add V8 embedder version string".) Fixes: https://github.com/nodejs/node/issues/16736 PR-URL: https://github.com/nodejs/node/pull/16769 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
02bad59f00
commit
421316dca1
@ -89,7 +89,7 @@ function versionCheck() {
|
||||
var firstLine = readline();
|
||||
line = firstLine + '\n' + line;
|
||||
firstLine = firstLine.split(',');
|
||||
const curVer = process.versions.v8.split(/\.-/);
|
||||
const curVer = process.versions.v8.split(/[.\-]/);
|
||||
if (firstLine.length !== 6 && firstLine.length !== 7 ||
|
||||
firstLine[0] !== 'v8-version') {
|
||||
console.log('Unable to read v8-version from log file.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user