From 52d471d87af556c863ed1368d09b916fd062b605 Mon Sep 17 00:00:00 2001 From: mulekick Date: Sat, 2 Oct 2021 02:59:43 +0200 Subject: [PATCH] fix custom options parsing --- lib/options/custom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/options/custom.js b/lib/options/custom.js index d7435664..67ee0795 100644 --- a/lib/options/custom.js +++ b/lib/options/custom.js @@ -45,9 +45,9 @@ module.exports = function(proto) { var doSplit = true; - if (arguments.length > 1) { - options = [].slice.call(arguments); - doSplit = false; + if (options.length > 1) { + options = [].slice.call(options); + doSplit = false; } if (!Array.isArray(options)) {