Skip to content

Commit

Permalink
lib: fix version check in tick processor
Browse files Browse the repository at this point in the history
Introduced in 70832bc ("build: add V8 embedder version string".)

Fixes: #16736
PR-URL: #16769
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
bnoordhuis authored and cjihrig committed Nov 7, 2017
1 parent da66610 commit c14030e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/v8_prof_polyfill.js
Expand Up @@ -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.');
Expand Down

0 comments on commit c14030e

Please sign in to comment.