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: cannot read R_OK from undefined (node < 18.4.0) #96

Merged

Conversation

ACHP
Copy link
Contributor

@ACHP ACHP commented Sep 16, 2023

Not a big change, and depending of the node version skott want to officialy support, you might decide to close this PR, but a recent changes introduces a bug:

Importing R_OK from fs.constants is not supported for node version lower than 18.4.0

Relates to:
nodejs/node#44209 (comment)

Copy link
Owner

@antoine-coulon antoine-coulon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thank you, nice catch! It was indeed imported correctly from node:constants and just used correctly in the method above (read), smh 🤦‍♂️

@antoine-coulon antoine-coulon merged commit 04db823 into antoine-coulon:main Sep 16, 2023
3 checks passed
@ACHP ACHP deleted the fix/fs.constants.R_OK-does-not-exist branch September 16, 2023 18:19
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.

None yet

2 participants