Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLJS-454: Allow nanoseconds in fractions part of instant literals
This patch mimics the clojure reader which truncates the fraction part to 9 digits (i.e. nanoseconds). This patch truncates to milliseconds (3 digits). Note that this patch also fixes three other bugs: * CLJS-564 * The clojure reader reads "#inst \"2003-12-10T00:00:00.4\"" as #inst "2003-12-10T00:00:00.400" but the clojurescript reader (prior to this patch) reads the same string as #inst "2003-12-10T00:00:00.004" * #inst tests generated bad test data
- Loading branch information
1 parent
9d26766
commit a749ab6
Showing
2 changed files
with
54 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters