-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
- Version: v13.3.0
- Platform: Linux pc 5.3.15-1-MANJARO deps: update openssl to 1.0.1j #1 SMP PREEMPT Thu Dec 5 11:01:29 UTC 2019 x86_64 GNU/Linux
- Subsystem: fs
When executing:
require('fs').writeFileSync('/tmp/empty-file');
It creates a file containing "undefined" string:
% hexdump -C /tmp/empty-file
00000000 75 6e 64 65 66 69 6e 65 64 |undefined|
00000009
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.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.