Repository navigation
Commit a7689fb
Max Pollard
fix(string): filter non-finite results after parsing instead of matching the sign
Keeps the overflow case: a decimal literal too large for f64 is a valid
StringNumericLiteral whose value rounds to an infinity, so only an infinite
result with no digits is rejected.1 parent ac04a71 commit a7689fb
2 files changed
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | 334 | | |
344 | 335 | | |
345 | 336 | | |
| |||
369 | 360 | | |
370 | 361 | | |
371 | 362 | | |
372 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
373 | 371 | | |
374 | 372 | | |
375 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
627 | 633 | | |
0 commit comments