Commit 165f59d
committed
feat(parser): report empty expression in JSX attribute error (#16378)
Fixes #16371
> TS17000: JSX attributes must only be assigned a non-empty 'expression'.
https://www.typescriptlang.org/dev/bug-workbench/?ignoreDeprecations=6#code/PTAEAEEsHMDsHsBOBTAIsgDigxgQwC6TywDOAXKAGwB0ADAFCQC2GS+oASsrtuwGaJ4TUAHIUPfCMYs2oAMKgBQ0dhEBuevQA8CjAF4A3sABUoACoB5VBdDHgAX1DAAfEA
Coverage results are unchanged:
https://github.com/oxc-project/oxc/blob/d490daa113c582703afef553c6537f592cb02a45/tasks/coverage/snapshots/parser_typescript.snap#L7295-L73171 parent d6f90dd commit 165f59d
File tree
3 files changed
+13
-11
lines changed- crates
- oxc_parser/src
- jsx
- oxc_semantic/src/checker
3 files changed
+13
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
292 | 299 | | |
293 | 300 | | |
294 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | 427 | | |
433 | 428 | | |
434 | 429 | | |
| |||
439 | 434 | | |
440 | 435 | | |
441 | 436 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | 437 | | |
449 | 438 | | |
450 | 439 | | |
| |||
0 commit comments