Commit 3abbfe0
committed
[compiler] Errors for eval(), with statments, class declarations
* Error for `eval()`
* More specific error message for `with (expr) { ... }` syntax
* More specific error message for class declarations1 parent ec4374c commit 3abbfe0
File tree
4 files changed
+70
-4
lines changed- compiler/packages/babel-plugin-react-compiler/src
- HIR
- __tests__/fixtures/compiler
4 files changed
+70
-4
lines changedLines changed: 41 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1355 | 1355 | | |
1356 | 1356 | | |
1357 | 1357 | | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1358 | 1388 | | |
1359 | 1389 | | |
1360 | 1390 | | |
1361 | 1391 | | |
1362 | 1392 | | |
1363 | 1393 | | |
1364 | | - | |
1365 | 1394 | | |
1366 | 1395 | | |
1367 | 1396 | | |
| |||
1384 | 1413 | | |
1385 | 1414 | | |
1386 | 1415 | | |
1387 | | - | |
1388 | | - | |
| 1416 | + | |
1389 | 1417 | | |
1390 | 1418 | | |
1391 | 1419 | | |
| |||
3502 | 3530 | | |
3503 | 3531 | | |
3504 | 3532 | | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
3505 | 3543 | | |
3506 | 3544 | | |
3507 | 3545 | | |
| |||
Lines changed: 24 additions & 0 deletions
| 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 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments