This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Commit 28661d1
fix($parse): support dirty-checking objects with null prototype
Objects created with `Object.create(null);` do not have a `valueOf` method unless
they supply one themselves. To accomodate these, Object.prototype.valueOf is
used when the type of the value is "object", and the `valueOf` property is not
a function (E.G. it's not in the object at all).
Closes #95681 parent 7f4d24c commit 28661d1
2 files changed
+35
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
949 | 955 | | |
950 | 956 | | |
951 | 957 | | |
| |||
1092 | 1098 | | |
1093 | 1099 | | |
1094 | 1100 | | |
1095 | | - | |
| 1101 | + | |
1096 | 1102 | | |
1097 | 1103 | | |
1098 | 1104 | | |
| |||
1119 | 1125 | | |
1120 | 1126 | | |
1121 | 1127 | | |
1122 | | - | |
| 1128 | + | |
1123 | 1129 | | |
1124 | 1130 | | |
1125 | 1131 | | |
| |||
1136 | 1142 | | |
1137 | 1143 | | |
1138 | 1144 | | |
1139 | | - | |
| 1145 | + | |
1140 | 1146 | | |
1141 | 1147 | | |
1142 | 1148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1482 | 1482 | | |
1483 | 1483 | | |
1484 | 1484 | | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
1485 | 1511 | | |
1486 | 1512 | | |
1487 | 1513 | | |
| |||
0 commit comments