Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async_hooks.currentId is not a function #52

Open
Quantumplation opened this issue Dec 2, 2019 · 1 comment
Open

async_hooks.currentId is not a function #52

Quantumplation opened this issue Dec 2, 2019 · 1 comment
Assignees
Labels

Comments

@Quantumplation
Copy link

While trying to debug #51, I tried turning on the DEBUG_CLS_HOOKED environment variable, and it pretty quickly crashed. Looks like this line:

https://github.com/Jeff-Lewis/cls-hooked/blob/master/context.js#L52

was meant to call executionAsyncId instead? If you can confirm that this is the case, I'm happy to submit a pull request!

@Jeff-Lewis Jeff-Lewis self-assigned this Dec 4, 2019
@Jeff-Lewis Jeff-Lewis added the bug label Dec 4, 2019
@Jeff-Lewis
Copy link
Owner

@Quantumplation at quick glance it looks like you made a good catch. I have to confirm but I think the newer versions of node, the currentID() has been removed. This should only be an issue when setting the DEBUG_CLS_HOOKED variable or if Babel is trying to evaluate all code. I'll take a closer look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants