Commit 66afb72
committed
Fix member access on non-decimal numeric literals
In other engines, 0x0.toString() returns '0', but QJS would try to parse it
as a float and then throw.
Also removes remnants of hex float parsing which is no longer supported
anyway.
(Port of quickjs-ng/quickjs#377)1 parent a31dcef commit 66afb72
2 files changed
Lines changed: 16 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12436 | 12436 | | |
12437 | 12437 | | |
12438 | 12438 | | |
12439 | | - | |
| 12439 | + | |
12440 | 12440 | | |
12441 | 12441 | | |
12442 | 12442 | | |
| |||
12446 | 12446 | | |
12447 | 12447 | | |
12448 | 12448 | | |
12449 | | - | |
12450 | | - | |
12451 | | - | |
| 12449 | + | |
12452 | 12450 | | |
12453 | 12451 | | |
12454 | 12452 | | |
| |||
12485 | 12483 | | |
12486 | 12484 | | |
12487 | 12485 | | |
12488 | | - | |
12489 | | - | |
12490 | | - | |
12491 | | - | |
12492 | | - | |
12493 | | - | |
12494 | | - | |
12495 | | - | |
12496 | | - | |
12497 | | - | |
12498 | | - | |
12499 | | - | |
12500 | | - | |
| 12486 | + | |
| 12487 | + | |
| 12488 | + | |
12501 | 12489 | | |
12502 | 12490 | | |
12503 | 12491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
667 | 677 | | |
668 | 678 | | |
669 | 679 | | |
| |||
690 | 700 | | |
691 | 701 | | |
692 | 702 | | |
| 703 | + | |
0 commit comments