Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.7k
Commit4afd207
authored
Interepret parser
* fix: set top level await when AllowAwaitOutsideFunction is true* fix: set top level return when AllowReturnOutsideFunction is true* fix: set top level super when AllowSuperOutsideMethod is true* refactor: simplify new.targe scope check* rename test suites* fix: do not construct invalid js in template* Revert "fix: set top level super when AllowSuperOutsideMethod is true"This reverts commit9a256c7.# Conflicts:#packages/babel-parser/src/parser/util.ts#packages/babel-parser/test/fixtures/core/opts/allowSuperOutsideMethod-true-invalid-in-function-body/input.js#packages/babel-parser/test/fixtures/core/opts/allowSuperOutsideMethod-true-invalid-in-function-body/options.json#packages/babel-parser/test/fixtures/core/opts/allowSuperOutsideMethod-true-invalid-in-function-body/output.json* polish: overwrite await using in async errorwhen await using is in ambient context* add async-do allowReturnOutsideFunction test* temporarily disable prettier async-do-expressions testallow*
options as top level only (#17203)1 parent7428811 commit4afd207
File tree
18 files changed
+200
-45
lines changed- packages
- babel-parser
- src
- parser
- plugins/typescript
- util
- test/fixtures
- core/opts
- allowAwaitOutsideFunction-true-invalid-in-static-block
- allowReturnOutsideFunction-true-invalid-in-static-block
- experimental/async-do-expressions/invalid-return-allow-return-outside-function
- typescript/declare/invalid-namespace-await-using
- babel-plugin-transform-classes/src
- scripts/integration-tests
18 files changed
+200
-45
lines changedLines changed: 2 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1893 | 1893 |
| |
1894 | 1894 |
| |
1895 | 1895 |
| |
1896 |
| - | |
1897 |
| - | |
1898 |
| - | |
1899 |
| - | |
1900 |
| - | |
| 1896 | + | |
1901 | 1897 |
| |
1902 | 1898 |
| |
1903 | 1899 |
| |
| |||
2869 | 2865 |
| |
2870 | 2866 |
| |
2871 | 2867 |
| |
2872 |
| - | |
2873 |
| - | |
2874 |
| - | |
2875 |
| - | |
| 2868 | + | |
2876 | 2869 |
| |
2877 | 2870 |
| |
2878 | 2871 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1090 | 1090 |
| |
1091 | 1091 |
| |
1092 | 1092 |
| |
1093 |
| - | |
1094 |
| - | |
1095 |
| - | |
1096 |
| - | |
| 1093 | + | |
1097 | 1094 |
| |
1098 | 1095 |
| |
1099 | 1096 |
| |
|
Lines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
356 | 356 |
| |
357 | 357 |
| |
358 | 358 |
| |
359 |
| - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
360 | 363 |
| |
361 | 364 |
| |
362 | 365 |
| |
363 | 366 |
| |
364 | 367 |
| |
365 |
| - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
366 | 376 |
| |
367 | 377 |
| |
368 | 378 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3135 | 3135 |
| |
3136 | 3136 |
| |
3137 | 3137 |
| |
3138 |
| - | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
3139 | 3143 |
| |
3140 | 3144 |
| |
3141 | 3145 |
| |
|
Lines changed: 13 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 |
| |
53 |
| - | |
| 56 | + | |
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
57 |
| - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 |
| |
59 | 65 |
| |
60 | 66 |
| |
61 | 67 |
| |
62 | 68 |
| |
63 | 69 |
| |
64 | 70 |
| |
65 |
| - | |
| 71 | + | |
66 | 72 |
| |
67 | 73 |
| |
68 | 74 |
| |
69 | 75 |
| |
70 | 76 |
| |
71 | 77 |
| |
72 |
| - | |
| 78 | + | |
73 | 79 |
| |
74 | 80 |
| |
75 | 81 |
| |
| |||
98 | 104 |
| |
99 | 105 |
| |
100 | 106 |
| |
101 |
| - | |
| 107 | + | |
102 | 108 |
| |
103 | 109 |
| |
104 | 110 |
| |
| |||
220 | 226 |
| |
221 | 227 |
| |
222 | 228 |
| |
223 |
| - | |
| 229 | + | |
224 | 230 |
| |
225 | 231 |
| |
226 | 232 |
| |
|
Lines changed: 15 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 |
| |
17 | 20 |
| |
18 | 21 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + |
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + |
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + |
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + |
0 commit comments
Comments
(0)