Skip to content

Commit

Permalink
try to fix #57
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jan 27, 2022
1 parent d985cb1 commit 6708b2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var active = new Map()
var hook = asyncHooks.createHook({
init (asyncId, type, triggerAsyncId, resource) {
if (type === 'TIMERWRAP' || type === 'PROMISE') return
if (type === 'PerformanceObserver' || type === 'RANDOMBYTESREQUEST') return
var err = new Error('whatevs')
var stacks = stackback(err)
active.set(asyncId, {type, stacks, resource})
Expand Down

0 comments on commit 6708b2e

Please sign in to comment.