summaryrefslogtreecommitdiff
path: root/benchmark/util/inspect-array.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/util/inspect-array.js')
-rw-r--r--benchmark/util/inspect-array.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/benchmark/util/inspect-array.js b/benchmark/util/inspect-array.js
index 74332d1857..8b3c54aeb9 100644
--- a/benchmark/util/inspect-array.js
+++ b/benchmark/util/inspect-array.js
@@ -18,14 +18,13 @@ function main({ n, len, type }) {
var arr = Array(len);
var i, opts;
- // For testing, if supplied with an empty type, default to denseArray.
- type = type || 'denseArray';
-
switch (type) {
case 'denseArray_showHidden':
opts = { showHidden: true };
arr = arr.fill('denseArray');
break;
+ // For testing, if supplied with an empty type, default to denseArray.
+ case '':
case 'denseArray':
arr = arr.fill('denseArray');
break;