Commit 0d75c4e
[parser] Don't handle
The variable is already properly allocated, so we shouldn't try to
reallocate it. Notable this would be wrong in the case where we reparse
a class body for one of its initializers. The function in which the
class body actually lives might not have required a context, but
computed property names might have referred to its receiver. When we
reparse the class that function might not be on the outer scope chain of
the class (since it didn't require a context).
Bug: 371237564
Change-Id: I54ccbc86eb9abdcd558d395f7896d1a23a110b50
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5937959
Reviewed-by: Marja Hölttä <[email protected]>
Commit-Queue: Toon Verwaest <[email protected]>
Commit-Queue: Marja Hölttä <[email protected]>
Auto-Submit: Toon Verwaest <[email protected]>
Reviewed-by: Joyee Cheung <[email protected]>
Cr-Commit-Position: refs/heads/main@{#96677}this var management in reparsed scopes1 parent a1a2b74 commit 0d75c4e
File tree
3 files changed
+25
-5
lines changed- src
- ast
- parsing
- test/mjsunit/regress
3 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
1413 | 1415 | | |
1414 | 1416 | | |
1415 | 1417 | | |
1416 | | - | |
1417 | | - | |
1418 | 1418 | | |
1419 | 1419 | | |
1420 | 1420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1241 | 1241 | | |
1242 | 1242 | | |
1243 | 1243 | | |
1244 | | - | |
1245 | | - | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1246 | 1248 | | |
1247 | 1249 | | |
1248 | 1250 | | |
| |||
1255 | 1257 | | |
1256 | 1258 | | |
1257 | 1259 | | |
1258 | | - | |
1259 | 1260 | | |
1260 | 1261 | | |
1261 | 1262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments