async_hooks.executionAsyncId and triggerAsyncId become 0 in async functions even with hooks installed #20404
Labels
async_hooks
Issues and PRs related to the async hooks subsystem.
duplicate
Issues and PRs that are duplicates of other issues or PRs.
promises
Issues and PRs related to ECMAScript promises.
My exist code breaks when I upgrade node to 10.0.0 (I implemented something similar to cls-hooked in my code, and it broke)
I have read the document, but it only said "Installing async hooks via async_hooks.createHook enables promise execution tracking.", no luck.
Here's some code that reproduces my problem:
node 10.0.0 outputs
node 9.4.0 (the old version I was using) ouputs:
The text was updated successfully, but these errors were encountered: