Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const hooks = require( 'async_hooks' )

const cls = {}
let current = null
let current = {}
const HOLD = "$HOLD"

hooks
Expand All @@ -14,7 +14,7 @@ hooks
current = cls[ id ] = cls[id] || {}
},
after () {
current = null
current = {}
},
destroy ( id ) {
delete cls[ id ]
Expand Down