summaryrefslogtreecommitdiff
path: root/benchmark/crypto/cipher-stream.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/crypto/cipher-stream.js')
-rw-r--r--benchmark/crypto/cipher-stream.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/crypto/cipher-stream.js b/benchmark/crypto/cipher-stream.js
index 90bf548c76..9fd88f1d86 100644
--- a/benchmark/crypto/cipher-stream.js
+++ b/benchmark/crypto/cipher-stream.js
@@ -11,7 +11,7 @@ var bench = common.createBenchmark(main, {
function main(conf) {
var api = conf.api;
- if (api === 'stream' && process.version.match(/^v0\.[0-8]\./)) {
+ if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) {
console.error('Crypto streams not available until v0.10');
// use the legacy, just so that we can compare them.
api = 'legacy';