Skip to content

Commit c14030e

Browse files
bnoordhuiscjihrig
authored andcommittedNov 7, 2017
lib: fix version check in tick processor
Introduced in 70832bc ("build: add V8 embedder version string".) Fixes: nodejs#16736 PR-URL: nodejs#16769 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent da66610 commit c14030e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/internal/v8_prof_polyfill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function versionCheck() {
8989
var firstLine = readline();
9090
line = firstLine + '\n' + line;
9191
firstLine = firstLine.split(',');
92-
const curVer = process.versions.v8.split(/\.-/);
92+
const curVer = process.versions.v8.split(/[.\-]/);
9393
if (firstLine.length !== 6 && firstLine.length !== 7 ||
9494
firstLine[0] !== 'v8-version') {
9595
console.log('Unable to read v8-version from log file.');

0 commit comments

Comments
 (0)
Please sign in to comment.