Skip to content

Commit

Permalink
Don't report unfulfilled promises (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt authored and mafintosh committed Aug 30, 2018
1 parent 8f7908d commit d150556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var sep = path.sep
var active = new Map()
var hook = asyncHooks.createHook({
init (asyncId, type) {
if (type === 'TIMERWRAP') return
if (type === 'TIMERWRAP' || type === 'PROMISE') return
var err = new Error('whatevs')
var stacks = stackback(err)
active.set(asyncId, {type, stacks})
Expand Down

0 comments on commit d150556

Please sign in to comment.