summaryrefslogtreecommitdiff
path: root/common/modules/base.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/base.jsm')
-rw-r--r--common/modules/base.jsm3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/modules/base.jsm b/common/modules/base.jsm
index 92f8655a..020fbbb5 100644
--- a/common/modules/base.jsm
+++ b/common/modules/base.jsm
@@ -147,6 +147,9 @@ defineModule.modules = [];
defineModule.times = { all: 0 };
defineModule.time = function time(major, minor, func, self) {
let time = Date.now();
+ if (typeof func !== "function")
+ func = self[func];
+
try {
var res = func.apply(self, Array.slice(arguments, 4));
}