We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a5d7d9 commit 58ceaa0Copy full SHA for 58ceaa0
src/debug.js
@@ -183,7 +183,7 @@ function createDebug(namespace) {
183
var isPromise = false;
184
var section = debug.begin.apply(debug, args);
185
try {
186
- var result = fn();
+ var result = fn(section);
187
188
if (typeof Promise === 'function' && result instanceof Promise) { // eslint-disable-line no-undef
189
isPromise = true;
0 commit comments