From c14030ec7a4e5f0cfe693c694fe50c5a1303f577 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 5 Nov 2017 11:33:13 +0100 Subject: [PATCH] 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 Reviewed-By: James M Snell --- lib/internal/v8_prof_polyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/v8_prof_polyfill.js b/lib/internal/v8_prof_polyfill.js index 1c9ba4ebc546fc..72efa46f041500 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.');