Commit e06ace6
[api] Fix empty Maybe crash in GetRealNamedPropertyAttributes
`Object::GetRealNamedPropertyAttributes()` can crash if an empty
`Maybe` is returned by `JSReceiver::GetPropertyAttributes()` because
it was not checking for that. Fix that.
Refs: nodejs/node#34606
Change-Id: Ic83f904ba7134786bcd8f786eb2ce98adb4fea1e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2335057
Commit-Queue: Leszek Swirski <[email protected]>
Reviewed-by: Leszek Swirski <[email protected]>
Cr-Commit-Position: refs/heads/master@{#69258}1 parent 6315167 commit e06ace6
2 files changed
Lines changed: 49 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4728 | 4728 | | |
4729 | 4729 | | |
4730 | 4730 | | |
4731 | | - | |
4732 | | - | |
4733 | | - | |
| 4731 | + | |
| 4732 | + | |
| 4733 | + | |
4734 | 4734 | | |
4735 | 4735 | | |
4736 | 4736 | | |
| |||
4743 | 4743 | | |
4744 | 4744 | | |
4745 | 4745 | | |
| 4746 | + | |
4746 | 4747 | | |
4747 | 4748 | | |
4748 | 4749 | | |
| |||
4767 | 4768 | | |
4768 | 4769 | | |
4769 | 4770 | | |
4770 | | - | |
4771 | | - | |
| 4771 | + | |
| 4772 | + | |
4772 | 4773 | | |
4773 | 4774 | | |
4774 | 4775 | | |
4775 | 4776 | | |
4776 | 4777 | | |
4777 | 4778 | | |
| 4779 | + | |
4778 | 4780 | | |
4779 | 4781 | | |
4780 | 4782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11985 | 11985 | | |
11986 | 11986 | | |
11987 | 11987 | | |
| 11988 | + | |
| 11989 | + | |
| 11990 | + | |
| 11991 | + | |
| 11992 | + | |
| 11993 | + | |
| 11994 | + | |
| 11995 | + | |
| 11996 | + | |
| 11997 | + | |
| 11998 | + | |
| 11999 | + | |
| 12000 | + | |
| 12001 | + | |
| 12002 | + | |
| 12003 | + | |
| 12004 | + | |
| 12005 | + | |
| 12006 | + | |
| 12007 | + | |
| 12008 | + | |
| 12009 | + | |
| 12010 | + | |
| 12011 | + | |
| 12012 | + | |
| 12013 | + | |
| 12014 | + | |
| 12015 | + | |
| 12016 | + | |
| 12017 | + | |
| 12018 | + | |
| 12019 | + | |
| 12020 | + | |
| 12021 | + | |
| 12022 | + | |
| 12023 | + | |
| 12024 | + | |
| 12025 | + | |
| 12026 | + | |
| 12027 | + | |
| 12028 | + | |
| 12029 | + | |
11988 | 12030 | | |
11989 | 12031 | | |
11990 | 12032 | | |
| |||
0 commit comments