Repository navigation
Commit 01fd7c6
committed
Ensure numeric data is preserved
While JSON is happy to transfer 5.0 and 55555555555555555555555555
out of Python, it doesn't survive when loaded back into JavaScript.
The 5.0 becomes 5, and precision is lost on long numbers.
This patch changes the representation
5.0
to
['NUMBER-LITERAL', '5.0']1 parent 2b87b4a commit 01fd7c6
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2197 | 2197 | | |
2198 | 2198 | | |
2199 | 2199 | | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
2200 | 2204 | | |
2201 | 2205 | | |
2202 | 2206 | | |
| |||
3118 | 3122 | | |
3119 | 3123 | | |
3120 | 3124 | | |
3121 | | - | |
| 3125 | + | |
3122 | 3126 | | |
3123 | 3127 | | |
3124 | 3128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments