| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Can you add a Refs: line with the related issue URL?
Sorry, something went wrong.
|
@targos Added. Sorry, maybe I had to post 2 separate issues for these cases. |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
|
@targos I think it's better to follow other tests. For example. test\parallel\test-fs-write-file-sync.js uses abc and 123. |
Sorry, something went wrong.
There was a problem hiding this comment.
Functions fs.appendFile() and fs.writeFile() were called without mandatory data parameter.
How about:
The functions fs.appendFile() and fs.writeFile() were called without the required data parameter.
Also is that how functions are usually referred to in commit messages, with empty brackets?
This PR adds a simple data parameter to 6 calls of these functions.
I don't think this line is necessary, but in any case commit messages don't usually refer to themselves as PRs.
Sorry, something went wrong.
|
@seishun Fixed. As for 'how functions are usually referred to in commit messages' — I don't know. I just followed STYLE_GUIDE here:
Tell me if I should change this here. |
Sorry, something went wrong.
|
Agreed, let's keep the parentheses as-is. Also, maybe "were being called" instead of "were called". And maybe "argument" instead of "parameter". |
Sorry, something went wrong.
Sorry, something went wrong.
|
Could this be landed, please? |
Sorry, something went wrong.
|
@vsemozhetbyt One more thing. The first line is too long. How about replace "params" with "args"? |
Sorry, something went wrong.
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: #11595
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: #11595 PR-URL: #11601 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
|
This does not land cleanly in LTS. Please feel free to manually backport. Please also feel free to replace the backport request label with do-not-land if it shouldn't land |
Sorry, something went wrong.
Sorry, something went wrong.
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: #11595 Backport-PR-URL: #12477 PR-URL: #11601 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: #11595 Backport-PR-URL: #12477 PR-URL: #11601 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: nodejs/node#11595 Backport-PR-URL: nodejs/node#12477 PR-URL: nodejs/node#11601 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
fs, test
parallel/test-fs-null-bytes.js tests fs.appendFile() and fs.writeFile() with wrong parameters scheme, i.e. without mandatory data parameter. This may be not very important for the test aim, but it makes it somehow compromised. This PR adds a simple data parameter to the 6 calls of these functions.