Commit e7f04ae
Fix Symbol is-constructor + toPrimitive + ToNumber for symbols
- Remove __non_constructor__ from Symbol: IsConstructor(Symbol) now returns
true per spec (NewCall still throws TypeError for 'new Symbol()')
- Fix loose_equal: VM symbol objects (VmObject with __vm_symbol__) are
primitive Symbols — never equal String/Number/BigInt
- Fix loose_eq_to_primitive: treat VM symbol results as primitive, not object
- Fix ToNumber/ToNumeric: throw TypeError for Symbol values instead of NaN
- Fix try_to_primitive has_sym guard: check immediate prototype for
@@toPrimitive, not just own properties
Cluster 38: 10→9 fail (toPrimitive test fixed)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5376e09 commit e7f04ae
2 files changed
+47
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15942 | 15942 | | |
15943 | 15943 | | |
15944 | 15944 | | |
15945 | | - | |
15946 | 15945 | | |
15947 | 15946 | | |
15948 | 15947 | | |
| |||
31467 | 31466 | | |
31468 | 31467 | | |
31469 | 31468 | | |
31470 | | - | |
| 31469 | + | |
31471 | 31470 | | |
31472 | 31471 | | |
31473 | 31472 | | |
| |||
31725 | 31724 | | |
31726 | 31725 | | |
31727 | 31726 | | |
31728 | | - | |
| 31727 | + | |
| 31728 | + | |
| 31729 | + | |
| 31730 | + | |
| 31731 | + | |
| 31732 | + | |
| 31733 | + | |
31729 | 31734 | | |
31730 | 31735 | | |
31731 | 31736 | | |
| |||
31734 | 31739 | | |
31735 | 31740 | | |
31736 | 31741 | | |
31737 | | - | |
31738 | 31742 | | |
31739 | | - | |
| 31743 | + | |
| 31744 | + | |
| 31745 | + | |
| 31746 | + | |
| 31747 | + | |
| 31748 | + | |
| 31749 | + | |
| 31750 | + | |
31740 | 31751 | | |
31741 | 31752 | | |
31742 | 31753 | | |
| |||
31812 | 31823 | | |
31813 | 31824 | | |
31814 | 31825 | | |
| 31826 | + | |
| 31827 | + | |
| 31828 | + | |
| 31829 | + | |
| 31830 | + | |
| 31831 | + | |
| 31832 | + | |
| 31833 | + | |
| 31834 | + | |
| 31835 | + | |
| 31836 | + | |
| 31837 | + | |
31815 | 31838 | | |
31816 | 31839 | | |
31817 | 31840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6749 | 6749 | | |
6750 | 6750 | | |
6751 | 6751 | | |
| 6752 | + | |
| 6753 | + | |
| 6754 | + | |
| 6755 | + | |
| 6756 | + | |
6752 | 6757 | | |
6753 | 6758 | | |
6754 | 6759 | | |
| |||
6759 | 6764 | | |
6760 | 6765 | | |
6761 | 6766 | | |
| 6767 | + | |
| 6768 | + | |
| 6769 | + | |
| 6770 | + | |
| 6771 | + | |
6762 | 6772 | | |
6763 | 6773 | | |
6764 | 6774 | | |
| |||
6779 | 6789 | | |
6780 | 6790 | | |
6781 | 6791 | | |
| 6792 | + | |
| 6793 | + | |
| 6794 | + | |
| 6795 | + | |
| 6796 | + | |
6782 | 6797 | | |
6783 | 6798 | | |
6784 | 6799 | | |
6785 | 6800 | | |
6786 | 6801 | | |
6787 | 6802 | | |
6788 | 6803 | | |
| 6804 | + | |
| 6805 | + | |
| 6806 | + | |
| 6807 | + | |
6789 | 6808 | | |
6790 | 6809 | | |
6791 | 6810 | | |
| |||
0 commit comments