Commit 255f177
test: enable more case of bad buffer in
Passing to the `string` parameter an object with an own
`toString` function is no longer supported.(DEP0162)
So use such case as bad buffer in test.
Refs: https://github.com/nodejs/node/blob/main/doc/api/deprecations.md#dep0162-fswrite-fswritefilesync-coercion-to-string
PR-URL: #46236
Refs: #42796
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>fs.write
1 parent c09b203 commit 255f177Copy full SHA for 255f177
File tree
Expand file treeCollapse file tree
1 file changed
+1
-3
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+1
-3
lines changedOpen diff view settings
Collapse file
test/parallel/test-fs-write-optional-params.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-write-optional-params.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
68 | 68 | |
69 | 69 | |
70 | 70 | |
71 | | - |
72 | | - |
73 | | - |
| 71 | + |
74 | 72 | |
75 | 73 | |
76 | 74 | |
|
0 commit comments