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

Node 10.x and async.waterfall #25

Closed
mattcollier opened this issue Apr 26, 2018 · 3 comments
Closed

Node 10.x and async.waterfall #25

mattcollier opened this issue Apr 26, 2018 · 3 comments
Assignees

Comments

@mattcollier
Copy link
Contributor

Due to this commit that landed in node 10.x: nodejs/node@0a0fbd5

The fs.close operation here: https://github.com/digitalbazaar/bedrock/blob/master/lib/loggers.js#L219

is calling it's callback with (err, undefined) instead of just (err) which results in async.waterfall passing undefined as the argument to the subsequent operation which in this case is expecting only callback where callback === undefined which leads to callback is not a function

I am working on a patch for node which may just be to revert to the previous behavior in node 8.x here: https://github.com/nodejs/node/blob/v8.x/lib/fs.js#L134-L136

@mattcollier mattcollier self-assigned this Apr 26, 2018
@mattcollier
Copy link
Contributor Author

The issue appears to to be in native code, I've submitted an issue: nodejs/node#20335

@mattcollier
Copy link
Contributor Author

Fix landed: nodejs/node@60cc8ff awaiting release.

@mattcollier
Copy link
Contributor Author

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

No branches or pull requests

1 participant