Commit d4ff004
Error on invalid modifiers before `module` and `global` declarations.
Previously illegal syntax like this would be parsed without error:
```ts
protected accessor readonly async declare global {}
protected accessor readonly async global {}
protected accessor readonly async module "foo" {}
```
Discovered this bug while working on #15712.
Similar to #11713.
1 parent f7ef032 commit d4ff004
File tree
2 files changed
+22
-0
lines changed- crates/oxc_parser/src/ts
- tasks/coverage/snapshots
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
337 | 343 | | |
338 | 344 | | |
339 | 345 | | |
| |||
393 | 399 | | |
394 | 400 | | |
395 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
396 | 409 | | |
397 | 410 | | |
398 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9671 | 9671 | | |
9672 | 9672 | | |
9673 | 9673 | | |
| 9674 | + | |
| 9675 | + | |
| 9676 | + | |
| 9677 | + | |
| 9678 | + | |
| 9679 | + | |
| 9680 | + | |
| 9681 | + | |
| 9682 | + | |
9674 | 9683 | | |
9675 | 9684 | | |
9676 | 9685 | | |
| |||
0 commit comments