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

Fix horrible process.binding() atrocity #44

Conversation

brendanashworth
Copy link

See nodejs/node#2026. Also fixes #35.

This may introduce an issue, as it moves some functions like fs.rename to the prototype of graceful-fs rather than the actual object. I'd recommend just pushing out a semver-major release, because fixing the process.binding is much more pressing than the location of functions on the prototype chain.

brendanashworth and others added 2 commits June 21, 2015 15:06
Fix the horrible atrocity introduced in
08471b2. Previously it would evaluate
the code directly through process.binding(), and it now creates a new
Object with the prototype being the real fs module, exported by core.

Ref: nodejs/node#2026
@isaacs
Copy link
Owner

isaacs commented Jun 22, 2015

This doesn't handle EMFILE from fs.ReadStream or fs.WriteStream.

@brendanashworth brendanashworth changed the title Fix horrible processbinding atrocity Fix horrible process.binding() atrocity Jun 22, 2015
@isaacs
Copy link
Owner

isaacs commented Jun 22, 2015

Also, fs.readFile, fs.writeFile, and fs.appendFile won't handle EMFILE with this patch.

@isaacs
Copy link
Owner

isaacs commented Jun 28, 2015

Fixed a different way on v4

@isaacs isaacs closed this Jun 28, 2015
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.

fs.lstatSync() isn't instance of fs.Stats on Node.js 0.12
3 participants