-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
Calling:
fs.openSync(path, { flags: 'w' });
Throws: TypeError: flags must be an int
from native land.
While on the C++ side, that may be correct, in JavaScript land, the 2nd argument is not an int but a string.
In other words, yes, me passing an object was bad, but the error informed me to do the wrong thing compared to what the docs say.
Metadata
Metadata
Assignees
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.