Commit b874e3d
Treat yield expressions as an AssignmentPattern error
They were already treated as a BindingPattern error; this patch simply
replaces that call with one marking them as both a binding and assignment
error, and adds parsing tests for both cases.
BUG=v8:4707
LOG=n
Review URL: https://codereview.chromium.org/1632303002
Cr-Commit-Position: refs/heads/master@{#33528}1 parent 7068caf commit b874e3d
2 files changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2108 | 2108 | | |
2109 | 2109 | | |
2110 | 2110 | | |
2111 | | - | |
| 2111 | + | |
| 2112 | + | |
2112 | 2113 | | |
2113 | 2114 | | |
2114 | 2115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2308 | 2308 | | |
2309 | 2309 | | |
2310 | 2310 | | |
| 2311 | + | |
2311 | 2312 | | |
2312 | 2313 | | |
2313 | 2314 | | |
| |||
2345 | 2346 | | |
2346 | 2347 | | |
2347 | 2348 | | |
| 2349 | + | |
| 2350 | + | |
2348 | 2351 | | |
2349 | 2352 | | |
2350 | 2353 | | |
| |||
2362 | 2365 | | |
2363 | 2366 | | |
2364 | 2367 | | |
| 2368 | + | |
2365 | 2369 | | |
2366 | | - | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
2367 | 2374 | | |
2368 | 2375 | | |
2369 | 2376 | | |
2370 | 2377 | | |
| 2378 | + | |
2371 | 2379 | | |
2372 | 2380 | | |
2373 | 2381 | | |
| |||
2408 | 2416 | | |
2409 | 2417 | | |
2410 | 2418 | | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
2411 | 2429 | | |
2412 | 2430 | | |
| 2431 | + | |
2413 | 2432 | | |
2414 | 2433 | | |
2415 | 2434 | | |
| |||
0 commit comments