-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "fs: validate args of truncate functions in js" #7950
Conversation
LGTM. |
lgtm |
LGTM |
1 similar comment
LGTM |
3b8ea12
to
952a071
Compare
This reverts commit c86c1ee. original commit message: This patch 1. moves the basic validation of arguments to `truncate` family of functions to the JavaScript layer from the C++ layer. 2. makes sure that the File Descriptors are validated strictly. PR-URL: nodejs#2498 Reviewed-By: Trevor Norris <trev.norris@gmail.com> PR-URL: nodejs#7950 Reviewed-By: Julien Gilli <jgilli@nodejs.org> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
952a071
to
c5a18e7
Compare
landed in c5a18e7 |
Ah, so we ended up reverting the tests? Could those be re-applied later, perhaps? Refs: #7846 (comment) |
Likely best to just open a new PR adding those back in. As a reminder for myself: were those going to be kept as known-issue tests or regular tests? |
@jasnell My understanding was that (sub)tests that are still passing should be kept as regular tests. E.g. |
@ChALkeR would you be willing to submit another PR with the appropriate tests included built on top of this PR? I'm on vacation and don't have a ton of time to invest ATM, but would like to see this land |
@thealphanerd this doesn't apply cleanly to v6.x. Could you please backport it. |
It shouldn't have. I believe this revert was necessary to do the other reverts. If we get any more of these issues with fs I'm going to curl up in the corner and cry for a bit. |
I don't believe this needs to be backported to v6, so I'm going to add the label. Somebody (anybody) correct me if that is incorrect. |
@cjihrig this should not have to land on v6.x for the above mentioned reasons. I'll make sure to get the label on there next time |
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
fs
Description of change
This reverts commit c86c1ee.
original commit message:
This commit needs to be reverted in order to revert 9359de9
Please see more about the discussion in #7846