Nicolò Ribaudo
|
62b2c5ebb9
|
Regenerate parser fixtures (#13882)
|
2021-10-24 18:12:10 +02:00 |
|
Nicolò Ribaudo
|
44388e6e81
|
Disallow #a in #b in c and similar expressions (#13727)
* Disallow `#a in #b in c` and similar expressions
* Update packages/babel-parser/src/parser/expression.js
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* Add test for `await #x in`
* Flow
* Update flow allowlist
* Flow
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
|
2021-09-04 10:05:09 +02:00 |
|
Nicolò Ribaudo
|
a254ea38a4
|
Enable ergonomic brand checks (#priv in) by default (#13554)
* Enable ergonomic brand checks by default in `@babel/parser`
* Enable ergonomic brand checks by default in `preset-env`
* Fix error position
* Update Babel 8 tests
|
2021-08-03 23:02:17 +02:00 |
|
Huáng Jùnliàng
|
a387973821
|
Refactor private name tokenizing (#13256)
* add benchmark
* refactor: create tt.privateName token for private names
* add backward compat privateName = hash + name to Babel 7
* perf: get private name SV from token value
* chore: tweak benchmark file
* chore: update test fixtures
* convert tt.privateName to PrivateIdentifier
* perf: avoid most isPrivateName call
* Update packages/babel-parser/src/parser/expression.js
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
* perf: use inlinable codePointAtPos
* make prettier happy
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
|
2021-05-06 09:46:09 -04:00 |
|
Huáng Jùnliàng
|
ceaab0bae7
|
Parse class fields and private methods by default (#13175)
* feat: materialize class features
* chore: move testcases to es2022
* chore: update test fixtures
* chore: remove classPr\w+ from options.json
* chore: remove empty options.json
* update flow test allowlist
* update typescript allowlist
|
2021-04-28 18:21:31 +02:00 |
|