Commit 3c39bac
Don't skip hole checks inside patterns in parameter lists
Previously, b6e9f62 fixed self-assignment
in parameters to throw. But it failed to deal with the case of
destructuring with defaults. This patch extends that previous approach
to always treat the end of a parameter as its initializer position,
whether it has an initializer or not.
This is the minimal change to make it easy to merge; a follow-up
will rename the field of Parameter from "initializer_end_position"
to "end_position".
BUG=v8:5454
Review-Url: https://codereview.chromium.org/2390943002
Cr-Commit-Position: refs/heads/master@{#39962}1 parent 99cfa5f commit 3c39bac
2 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2939 | 2939 | | |
2940 | 2940 | | |
2941 | 2941 | | |
2942 | | - | |
2943 | | - | |
2944 | | - | |
2945 | 2942 | | |
2946 | 2943 | | |
2947 | 2944 | | |
| |||
2957 | 2954 | | |
2958 | 2955 | | |
2959 | 2956 | | |
2960 | | - | |
2961 | 2957 | | |
2962 | 2958 | | |
2963 | 2959 | | |
| |||
2980 | 2976 | | |
2981 | 2977 | | |
2982 | 2978 | | |
2983 | | - | |
| 2979 | + | |
2984 | 2980 | | |
2985 | 2981 | | |
2986 | 2982 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments