aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2016-05-28 00:56:28 -0400
committerBrian White <mscdex@mscdex.net>2016-06-14 15:13:00 -0400
commitc570182a39ada502d0f65223728b0cd9e136cda0 (patch)
tree2719b574505abdc642caa5d15a859c2920e173dd /benchmark
parentc8fa79f35128388496b42e41adcec486797f6122 (diff)
downloadandroid-node-v8-c570182a39ada502d0f65223728b0cd9e136cda0.tar.gz
android-node-v8-c570182a39ada502d0f65223728b0cd9e136cda0.tar.bz2
android-node-v8-c570182a39ada502d0f65223728b0cd9e136cda0.zip
benchmark: don't convert arguments to numbers
PR-URL: https://github.com/nodejs/node/pull/6570 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/common.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/benchmark/common.js b/benchmark/common.js
index d937e13d93..d49aef106f 100644
--- a/benchmark/common.js
+++ b/benchmark/common.js
@@ -195,9 +195,7 @@ function parseOpts(options) {
if (!match || !match[1] || !options[match[1]]) {
return null;
} else {
- conf[match[1]] = (match[2].length && isFinite(match[2])
- ? +match[2]
- : match[2]);
+ conf[match[1]] = match[2];
num--;
}
}