Skip to content

Commit c14030e

Browse files
bnoordhuiscjihrig
authored andcommitted
lib: fix version check in tick processor
Introduced in 70832bc ("build: add V8 embedder version string".) Fixes: #16736 PR-URL: #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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function versionCheck(){
8989
varfirstLine=readline();
9090
line=firstLine+'\n'+line;
9191
firstLine=firstLine.split(',');
92-
constcurVer=process.versions.v8.split(/\.-/);
92+
constcurVer=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)