You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fs.utimes Infinity support is misdocumented or regressed #15453
(I needed to set the mtime to some point in the past for make’s sake so it wouldn’t consider a broken file to be up to date and would try again. Not sure quite why I wrote Infinity for the atime rather than Date.now() / 1000, though I believe they were equivalent.)
In its history, it says that in v4.1.0, “Numeric strings, NaN and Infinity are now allowed time specifiers.” There is no note saying that NaN and Infinity are no longer permitted from such-and-such a version, yet the function documentation says “If the value is NaN, Infinity or -Infinity, an Error will be thrown.”
Either the history should be updated to indicate when infinties became illegal again, or this is a regression.
This worked on some Node 4 version, but it’s not working on 8.5.0 (I just upgraded).
Activity
cjihrig commentedon Sep 18, 2017
The note in the documentation was added in eed87b1. Would you care to send a documentation PR to update the
utimeschangelog?doc: update fs.utimes{,Sync} changelog
doc: update fs.utimes{,Sync} changelog
doc: update fs.utimes{,Sync} changelog
doc: update fs.utimes{,Sync} changelog
doc: update fs.utimes{,Sync} changelog
doc: update fs.utimes{,Sync} changelog