We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FileHandle.prototype.write
1 parent f25ba8c commit 3734b64Copy full SHA for 3734b64
test/parallel/test-fs-promises-file-handle-write.js
@@ -53,7 +53,7 @@ async function validateNonUint8ArrayWrite() {
53
async function validateNonStringValuesWrite() {
54
const filePathForHandle = path.resolve(tmpDir, 'tmp-non-string-write.txt');
55
const fileHandle = await open(filePathForHandle, 'w+');
56
- const nonStringValues = [123, {}, new Map()];
+ const nonStringValues = [123, {}, new Map(), null, undefined, 0n, () => {}, Symbol(), true];
57
for (const nonStringValue of nonStringValues) {
58
await assert.rejects(
59
fileHandle.write(nonStringValue),
0 commit comments