Daniel Tschinder
8bc9f9a05f
fix: Allow toplevel await when option true and correctly mark await keyword as unexpected ( #9371 )
2019-01-22 14:56:30 -08:00
Brian Ng
f77c450cda
Bump prettier ( #9373 )
2019-01-22 09:16:32 -06:00
Daniel Tschinder
af88e63dff
fix new keyword broken by recent refactoring ( #9377 )
2019-01-21 22:25:37 -08:00
Nicolò Ribaudo
0a88230ec4
Disallow async functions as loop bodies ( #9314 )
2019-01-17 17:07:48 -05:00
Nicolò Ribaudo
9764718c32
Disallow trailing comma after rest ( #9311 )
...
* Add new tests
* Use state instead of param and disallow comma in [...a,]=[]
* Unify error messages
* Object destructuring
* Update whitelist
2019-01-11 13:08:38 +01:00
Daniel Tschinder
3932830535
Parse non-octals with leading zeros in non strict mode correctly ( #9114 )
...
* Parse non-octals with leading zeros in non strict mode correctly
* Better error message
2018-12-03 00:04:37 -08:00
Brian Ng
e7f0c065cf
Bump some deps ( #9056 )
2018-11-21 15:21:36 -06:00
Grigory Moroz
445b14148e
Better error for disallowed trailing commas/parameters after rest elements ( #9046 )
...
* handle disordered rest parameter in function expressions
* remove spaces [lint]
* polish function parameters validation
* add test with arrow function and comma after rest parameter [babel-parser]
2018-11-21 07:49:36 +01:00
Logan Smyth
79b2af5997
Format fixture JSON with Prettier. ( #8658 )
2018-09-09 17:57:52 -07:00
Erik Arvidsson
2a8ebbe7ae
Remove parenthesizedArgument ( #7981 )
...
The extra field parenthesizedArgument was never set to true. It was
always set to false and the code that read this was incorrectly
checking if extra was present.
Fixes #7957
2018-05-29 13:58:21 -07:00
Logan Smyth
2058e0686e
Add support for an InterpreterDirective AST node.
2018-05-21 18:19:58 -07:00
Chaitanya Kumar Kamatham
daf0ca8680
Rename "babylon" to "@babel/parser" ( #7937 ) 🎉
2018-05-19 00:03:05 -04:00