Skip to content

call fs.close synchronously - #1022

Closed
thefourtheye wants to merge 1 commit into
winstonjs:masterfrom
thefourtheye:patch-1
Closed

thefourtheye wants to merge 1 commit into
winstonjs:masterfrom
thefourtheye:patch-1

Conversation

@thefourtheye

Copy link
Copy Markdown

As nodejs/node#12562 landed in Node.js,
fs.close call without callback function will fail in Node.js v8.

As nodejs/node#12562 landed in Node.js,
`fs.close` call without callback function will fail in Node.js v8.
@mscdex

mscdex commented May 16, 2017

Copy link
Copy Markdown

Is this the right substitute though? It seems like async methods are being used there, so maybe at least an empty callback should be used instead (or better yet do something in case of error)?

@indexzero

Copy link
Copy Markdown
Member

Thanks for the insights @mscdex – will keep an eye on this and perhaps land it in the 2.x release line.

@indexzero

Copy link
Copy Markdown
Member

Duplicate of #1227 and #1228

@indexzero indexzero closed this Mar 9, 2018
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

Successfully merging this pull request may close these issues.

3 participants