Commit 9653ae1
Add RequireObjectCoercible + ToString coercion to String prototype methods
String.prototype methods now properly:
- Throw TypeError when called on null/undefined
- Coerce non-string primitives (Number, Boolean, BigInt) via ToString
- Coerce generic objects via JS-level ToString (calls toString/valueOf)
Only applies to string method builtin IDs (110-134) to avoid affecting
other native functions.
Cluster 37 (String): 540 → 394 failures (146 tests fixed)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a42831b commit 9653ae1
1 file changed
+32
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7699 | 7699 | | |
7700 | 7700 | | |
7701 | 7701 | | |
7702 | | - | |
7703 | | - | |
7704 | | - | |
7705 | | - | |
7706 | | - | |
7707 | | - | |
| 7702 | + | |
| 7703 | + | |
| 7704 | + | |
| 7705 | + | |
| 7706 | + | |
| 7707 | + | |
| 7708 | + | |
7708 | 7709 | | |
7709 | | - | |
7710 | | - | |
7711 | | - | |
7712 | | - | |
7713 | | - | |
7714 | | - | |
| 7710 | + | |
| 7711 | + | |
| 7712 | + | |
| 7713 | + | |
| 7714 | + | |
| 7715 | + | |
7715 | 7716 | | |
7716 | 7717 | | |
7717 | 7718 | | |
| |||
28990 | 28991 | | |
28991 | 28992 | | |
28992 | 28993 | | |
28993 | | - | |
| 28994 | + | |
| 28995 | + | |
28994 | 28996 | | |
28995 | 28997 | | |
28996 | 28998 | | |
| |||
29000 | 29002 | | |
29001 | 29003 | | |
29002 | 29004 | | |
| 29005 | + | |
| 29006 | + | |
| 29007 | + | |
| 29008 | + | |
| 29009 | + | |
| 29010 | + | |
| 29011 | + | |
| 29012 | + | |
29003 | 29013 | | |
29004 | 29014 | | |
29005 | 29015 | | |
29006 | 29016 | | |
| 29017 | + | |
| 29018 | + | |
| 29019 | + | |
| 29020 | + | |
| 29021 | + | |
| 29022 | + | |
| 29023 | + | |
| 29024 | + | |
| 29025 | + | |
29007 | 29026 | | |
29008 | 29027 | | |
29009 | 29028 | | |
| |||
0 commit comments