2021-01-18 09:45:37 +02:00
|
|
|
#### Disable Babel's error recovery for omitted call arguments (#9787 by @sosukesuzuki, #10065 by @thorn0)
|
2020-12-08 13:52:30 +09:00
|
|
|
|
|
|
|
|
<!-- prettier-ignore -->
|
|
|
|
|
```js
|
|
|
|
|
// Input
|
|
|
|
|
foo("a", , "b");
|
|
|
|
|
|
|
|
|
|
// Prettier stable
|
|
|
|
|
TypeError: Cannot read property 'type' of null
|
|
|
|
|
|
2021-01-24 01:14:13 +08:00
|
|
|
// Prettier main
|
2021-01-18 09:45:37 +02:00
|
|
|
[error] stdin: SyntaxError: Argument expression expected. (1:10)
|
|
|
|
|
[error] > 1 | foo("a", , "b");
|
|
|
|
|
[error] | ^
|
2020-12-08 13:52:30 +09:00
|
|
|
```
|