From 6933e233d5470ed6631650ef850979deb924d9ab Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 12 Apr 2024 15:15:12 -0300 Subject: cli: decorateTime: preserve this --- src/util/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/cli.js b/src/util/cli.js index 47f9c9ab..ce513f08 100644 --- a/src/util/cli.js +++ b/src/util/cli.js @@ -246,7 +246,7 @@ export function decorateTime(arg1, arg2) { const fn = function (...args) { const start = Date.now(); - const ret = functionToBeWrapped(...args); + const ret = functionToBeWrapped.apply(this, args); const end = Date.now(); meta.timeSpent += end - start; meta.timesCalled++; -- cgit 1.3.0-6-gf8a5