mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
lib: fix version check in tick processor
Introduced in 70832bc353 ("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:
1 parent
da66610798
commit
c14030ec7a
1 file changed
+1
-1
@@ -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.');
|
||||
|
||||
Reference in new issue
Block a user