Commit 56470ce
committed
Add type check to PrototypeOverwriteGenerator
This patch adds a check in case an object and the object its prototype
is being set to are the same thing (i.e. obj.__proto__ = obj;)
This currently allows for an invalid program with the error:
TypeError: Cyclic __proto__ value
Bug: 40272934
Change-Id: Ib115f6f754d1cc70564bc91a5fd433033e9d5bdf
Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/8557236
Reviewed-by: Matthias Liedtke <mliedtke@google.com>1 parent 4dc6de5 commit 56470ce
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1658 | 1658 | | |
1659 | 1659 | | |
1660 | 1660 | | |
1661 | | - | |
| 1661 | + | |
| 1662 | + | |
1662 | 1663 | | |
1663 | 1664 | | |
1664 | 1665 | | |
| |||
0 commit comments