mirror of https://github.com/lukechilds/node.git
Browse Source
Infinity and NaN are currently considered valid input when generating a unix time stamp but are defaulted arbitrarly to Date.now()/1000. This PR removes this behaviour and throw an exception like all the other invalid input types. PR-URL: https://github.com/nodejs/node/pull/11919 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>v6
Luca Maraschi
8 years ago
committed by
James M Snell
4 changed files with 11 additions and 13 deletions
Loading…
Reference in new issue