10000 [node-core-library] Fix FileSystem.isErrnoException by dmichon-msft · Pull Request #5213 · microsoft/rushstack · GitHub
[go: up one dir, main page]

Skip to content

[node-core-library] Fix FileSystem.isErrnoException #5213

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

Merged
merged 2 commits into from
Apr 30, 2025

Conversation

dmichon-msft
Copy link
Contributor

Summary

Fixes a gap in FileSystem.isErrnoException for instances where the file system call was not provided with a file path, e.g. fs.readSync, which only takes a file descriptor.

Details

The method was expecting the path property to always be present and be a string, but not all methods are provided with a path.

How it was tested

Added unit tests.

Impacted documentation

None.

@dmichon-msft dmichon-msft merged commit cd02228 into microsoft:main Apr 30, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Apr 30, 2025
@dmichon-msft dmichon-msft deleted the fix-node-errno branch April 30, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants
0