Skip to content

Commit

Permalink
try slicing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 10, 2024
1 parent b57f14c commit a400bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
};
}
Expand Down

0 comments on commit a400bf4

Please # to comment.