Repository navigation
Commit 18a4e25
committed
fix(compiler): treat this/super/import.meta as inert in throwsBeforeAwait and handle TSImportEquals/TSModule in bindsName
- Add ThisExpression, Super, and MetaProperty to the inert expression list
in throwsBeforeAwait so that `await this.api.get(id)` is not falsely
treated as a synchronous throw.
- Add TSImportEqualsDeclaration and TSModuleDeclaration to bindsName so
that `import Promise = ...` and `namespace Promise` correctly disable
Promise combinator trust.
- Add regression tests for both fixes.1 parent dea2c33 commit 18a4e25
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| |||
2333 | 2335 | | |
2334 | 2336 | | |
2335 | 2337 | | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
2336 | 2341 | | |
2337 | 2342 | | |
2338 | 2343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
510 | 514 | | |
511 | 515 | | |
512 | 516 | | |
| |||
644 | 648 | | |
645 | 649 | | |
646 | 650 | | |
| 651 | + | |
| 652 | + | |
647 | 653 | | |
648 | 654 | | |
649 | 655 | | |
| |||
0 commit comments