Files
test-repo/changelog_unreleased/javascript/9787.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
375 B
Markdown
Raw Normal View History

#### 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
[error] stdin: SyntaxError: Argument expression expected. (1:10)
[error] > 1 | foo("a", , "b");
[error] | ^
2020-12-08 13:52:30 +09:00
```