Skip to content

Commit

Permalink
pass section to timed function
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Aug 9, 2017
1 parent 5a5d7d9 commit 58ceaa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function createDebug(namespace) {
var isPromise = false;
var section = debug.begin.apply(debug, args);
try {
var result = fn();
var result = fn(section);

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

0 comments on commit 58ceaa0

Please sign in to comment.