Skip to content

Commit a2d4954

Browse files
targosjasnell
authored andcommitted
test: support candidate V8 versions
When V8 is built from its master branch, it adds a " (candidate)" suffix to the version string. Add support for that in the tests so it does not fail with Node canary. PR-URL: #13282 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent f0ad3bb commit a2d4954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-process-versions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ assert(/^\d+\.\d+\.\d+(-.*)?$/.test(process.versions.http_parser));
2626
assert(/^\d+\.\d+\.\d+(-.*)?$/.test(process.versions.node));
2727
assert(/^\d+\.\d+\.\d+(-.*)?$/.test(process.versions.uv));
2828
assert(/^\d+\.\d+\.\d+(-.*)?$/.test(process.versions.zlib));
29-
assert(/^\d+\.\d+\.\d+(\.\d+)?$/.test(process.versions.v8));
29+
assert(/^\d+\.\d+\.\d+(\.\d+)?( \(candidate\))?$/.test(process.versions.v8));
3030
assert(/^\d+$/.test(process.versions.modules));

0 commit comments

Comments
 (0)