-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
fs.close twice different behavior on Windows 10 #3718
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
Activity
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
The following test case opens a file, and closes it twice expecting to get an Error.
On Linux/Mac the second close callback err3 has the following Error:
{ [Error: EBADF: bad file descriptor, close] errno: -9, code: 'EBADF', syscall: 'close' }On Windows 10 the second callback err3 has
null