« get me outta code hell

cli: decorateTime: preserve this - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-12 15:15:12 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-12 15:15:12 -0300
commit6933e233d5470ed6631650ef850979deb924d9ab (patch)
treeef6d548e00b47c86ec0c1e0c8e2ce0b0ae037312 /src
parent86d9899aa181907102b11265c74fc4aae63a7afc (diff)
cli: decorateTime: preserve this
Diffstat (limited to 'src')
-rw-r--r--src/util/cli.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/cli.js b/src/util/cli.js
index 47f9c9a..ce513f0 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++;