Skip to content

Commit d150556

Browse files
tbodtmafintosh
authored andcommitted
Don't report unfulfilled promises (#37)
1 parent 8f7908d commit d150556

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var sep = path.sep
77
var active = new Map()
88
var hook = asyncHooks.createHook({
99
init (asyncId, type) {
10-
if (type === 'TIMERWRAP') return
10+
if (type === 'TIMERWRAP' || type === 'PROMISE') return
1111
var err = new Error('whatevs')
1212
var stacks = stackback(err)
1313
active.set(asyncId, {type, stacks})

0 commit comments

Comments
 (0)