Date.prototype.valueOf
Open
bug
server
- Dominant language
- JavaScript
- Stars
- 198
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
The expression `(new Date()).valueOf()` should return a number (the date in ms since the epoch), but—because `Date.prototype.valueOf` is missing, and so `Object.prototype.valueOf` is called instead—ends up returning a Date object instead.
Fixing this properly requires creating a new builtin.
Contributor guide
Assessment
This issue has not been assessed yet.