diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2017-11-05 13:33:13 +0300 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2017-11-07 14:15:03 +0300 |
commit | 421316dca17d72919a928f414af8d03e2f3a2476 (patch) | |
tree | ef53b6eef09fc2aa74ec1fddd5f4f24be755a2d8 /lib/internal/v8_prof_polyfill.js | |
parent | 02bad59f003d03bf64c59874cd31bd29202a194a (diff) |
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>
Diffstat (limited to 'lib/internal/v8_prof_polyfill.js')
-rw-r--r-- | lib/internal/v8_prof_polyfill.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/v8_prof_polyfill.js b/lib/internal/v8_prof_polyfill.js index 1c9ba4ebc54..72efa46f041 100644 --- a/lib/internal/v8_prof_polyfill.js +++ b/lib/internal/v8_prof_polyfill.js @@ -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.'); |