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>
This commit is contained in:
parent
c8fa79f351
commit
c570182a39
@ -195,9 +195,7 @@ function parseOpts(options) {
|
|||||||
if (!match || !match[1] || !options[match[1]]) {
|
if (!match || !match[1] || !options[match[1]]) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
conf[match[1]] = (match[2].length && isFinite(match[2])
|
conf[match[1]] = match[2];
|
||||||
? +match[2]
|
|
||||||
: match[2]);
|
|
||||||
num--;
|
num--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user