From a400bf423671e853e7067c34289f2c17e6fc024f Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Sat, 9 Mar 2024 19:49:42 -0700 Subject: [PATCH] try slicing arguments --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 509e36f..5d3daa0 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,7 @@ function makeLogLevel(self, level) { if (typeof msg === 'string') { self.emit(level, format.apply(null, arguments)); } else { - self.emit.apply(self, arguments); + self.emit.apply(self, Array.prototype.slice.call(arguments)); } }; }