Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
fs: replace SetMethodNoSideEffect in node_file.cc#49857
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
fs: replace SetMethodNoSideEffect in node_file.cc#49857
Uh oh!
There was an error while loading. Please reload this page.
Conversation
anonrig commented Sep 25, 2023
cc @joyeecheung |
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot commented Sep 25, 2023
2cf762e to bf379efComparebenjamingr commented Sep 25, 2023
Why is this being fast tracked does it unblock something? |
CanadaHonk commented Sep 25, 2023
Pretty sure it's because it fixes repl possibly doing unwanted real FS ops for a few functions if you were to type out but not press enter (eg |
nodejs-github-bot commented Sep 25, 2023
nodejs-github-bot commented Sep 25, 2023
cjihrig commented Sep 25, 2023
The fact that this fixes a bug does not really mean that it qualifies for fast tracking. |
targos commented Sep 25, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
|
anonrig commented Sep 25, 2023
There isn't but referring to @joyeecheung's message (ref: #49748 (comment)), I think it is unnecessary to run fs operations (since they're costly) on REPL. |
cjihrig commented Sep 26, 2023
I don't interpret @joyeecheung's comment (but please correct me if I'm wrong) to mean we shouldn't do it because of performance reasons. I interpret it as
I don't feel strongly about this, but I think this is another case where performance just isn't important. The REPL is meant to be interactive and a person typing |
nodejs-github-bot commented Sep 27, 2023
Landed in 783f64b |
PR-URL: #49857 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
PR-URL: #49857 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
PR-URL: nodejs#49857 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
PR-URL: nodejs#49857 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
All FS methods should not use it since FS operations will have side effects (suggested by @anonrig)