Skip to content

Commit 58ceaa0

Browse files
committed
pass section to timed function
1 parent 5a5d7d9 commit 58ceaa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function createDebug(namespace) {
183183
var isPromise = false;
184184
var section = debug.begin.apply(debug, args);
185185
try {
186-
var result = fn();
186+
var result = fn(section);
187187

188188
if (typeof Promise === 'function' && result instanceof Promise) { // eslint-disable-line no-undef
189189
isPromise = true;

0 commit comments

Comments
 (0)