Skip to content

Commit

Permalink
Improve Date.parse
Browse files Browse the repository at this point in the history
- rewrite Date.parse() with separate parsers
- return `NaN` for out of bounds field values as specified
- accept up to 9 decimals for millisecond fraction but truncate at 3
- accept many more alternative date/time formats
- add test cases in tests/test_builtin.js
  • Loading branch information
chqrlie committed Feb 25, 2024
1 parent 6428ce0 commit 78db49c
Show file tree
Hide file tree
Showing 2 changed files with 360 additions and 242 deletions.
Loading

0 comments on commit 78db49c

Please sign in to comment.