summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-04-17 15:08:54 -0700
committerJames M Snell <jasnell@gmail.com>2017-04-17 15:50:20 -0700
commit0227571c172fa042cfab50e6521698123469f8cb (patch)
tree4d77600c9d6ae270f5644061e83e45487f8fc6e0 /benchmark
parent70b51c8cc32f87dd016c02ac72fd998fa54e2f06 (diff)
downloadandroid-node-v8-0227571c172fa042cfab50e6521698123469f8cb.tar.gz
android-node-v8-0227571c172fa042cfab50e6521698123469f8cb.tar.bz2
android-node-v8-0227571c172fa042cfab50e6521698123469f8cb.zip
Revert "benchmark: fix CLI arguments check in common.js"
This reverts commit e34f8e1444d1e52f4501ccc289cdb83da93e48f0. PR-URL: https://github.com/nodejs/node/pull/12474 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/common.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/common.js b/benchmark/common.js
index d41d46fd76..77ebe0bd1d 100644
--- a/benchmark/common.js
+++ b/benchmark/common.js
@@ -42,8 +42,8 @@ Benchmark.prototype._parseArgs = function(argv, configs) {
const extraOptions = {};
// Parse configuration arguments
for (const arg of argv) {
- const match = arg.match(/^(.+?)=([\s\S]+)$/);
- if (!match) {
+ const match = arg.match(/^(.+?)=([\s\S]*)$/);
+ if (!match || !match[1]) {
console.error('bad argument: ' + arg);
process.exit(1);
}