Commit 61e4635
Fix incorrect error when calling non-existent symbol property
We threw 'Object does not support ToString' when trying to call a symbol
property on an object when that property didn't exist. This happened
because we try to do a toString conversion on the index var for the
error message string, but Symbol objects do not support toString via
JavascriptConversion::ToString().
Fix it by special casing symbol properties and directly calling the
static JavascriptSymbol::ToString method to get a useful string.
Fixes #14091 parent 0cdf92d commit 61e4635
File tree
2 files changed
+20
-2
lines changed- lib/Runtime/Language
- test/es6
2 files changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4038 | 4038 | | |
4039 | 4039 | | |
4040 | 4040 | | |
4041 | | - | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
4042 | 4050 | | |
4043 | 4051 | | |
4044 | 4052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
964 | | - | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
965 | 975 | | |
966 | 976 | | |
967 | 977 | | |
0 commit comments