Commit 9210c36
committed
Prototype on cached type chain
While investigating chakra-core#2343, it was realized that when we set prototype, the
type chain that we cache doesn't have same prototype. All the predecessors
in the cached type chain before existing type of object still has oldPrototype
and only the existing type has new prototype.
Fix: Start with a type that has `newPrototype` object set because of which entire
chain will have `newPrototype` object.1 parent 507e4cb commit 9210c36
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1229 | 1229 | | |
1230 | 1230 | | |
1231 | 1231 | | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1232 | 1235 | | |
1233 | 1236 | | |
1234 | 1237 | | |
| |||
1576 | 1579 | | |
1577 | 1580 | | |
1578 | 1581 | | |
| 1582 | + | |
1579 | 1583 | | |
1580 | 1584 | | |
1581 | 1585 | | |
| |||
1661 | 1665 | | |
1662 | 1666 | | |
1663 | 1667 | | |
1664 | | - | |
1665 | | - | |
| 1668 | + | |
1666 | 1669 | | |
1667 | 1670 | | |
1668 | 1671 | | |
| |||
0 commit comments