fs.writeFileSync(path) literaly writes "undefined" to the file #31025
Labels
confirmed-bug
Issues with confirmed bugs.
fs
Issues and PRs related to the fs subsystem / file system.
When executing:
It creates a file containing "undefined" string:
This is unexpected behavior as I just wanted to create an empty file. I expect it to either write an empty file or throw but in no case have "undefined" written as the file content.
The text was updated successfully, but these errors were encountered: