Nicolò Ribaudo
578ab22fb7
Update test262 parser tests ignoredFeatures list ( #14019 )
2021-12-03 09:06:42 -05:00
J. S. Choi
f4236f43a1
Extend hasPlugin to accept plugin-configuration array pairs ( #13982 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-12-02 23:17:51 +01:00
Sosuke Suzuki
ddc45a5a50
Enable class static blocks by default ( #13713 )
...
* Remove classStaticBlock plugin
* Update tests
* Remove class static blocks from proposalPlugins
* Update tests
* Remove classStaticBlock from mapping for test262
* chore: update babel-types
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-10-28 14:39:04 -04: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
Babel Bot
5884adaa93
chore: update test262 to e6c21464f5f9d46679ad537dbc3e2be753fb5b5c ( #13646 )
2021-08-06 08:36:36 +02:00
Nicolò Ribaudo
ddaf0d4296
Enable top-level await parsing by default ( #13387 )
2021-08-04 00:00:04 +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
6e57617138
Fix await binding error within static block ( #13088 )
...
* fix: allow await within SCOPE_FUNCTION under static block
* perf: scan scopeStack for once
* add new test case
* chore: update allowlist
2021-07-16 10:35:19 -04:00
Babel Bot
1c7da020e4
Update test262 ( #13561 )
2021-07-16 09:10:11 -05:00
Babel Bot
bfcf783834
Update test262 ( #13544 )
2021-07-10 17:49:41 +02:00
Huáng Jùnliàng
b8175ec060
Relax import assertion key-is-type constraint ( #13409 )
2021-06-02 07:51:56 -04:00
Babel Bot
82a2ca82ca
Update test262 ( #13347 )
...
* chore: update test262 to 5e0fc43c6641e6655632ca73479c79f1dcb86a17
* Enable `importAssertions` parser plugin
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-21 10:40:53 -04:00
Huáng Jùnliàng
3195883923
chore: add class-static-block test262 mapping ( #13313 )
2021-05-14 17:11:10 -04:00
Babel Bot
b99c4f06d4
chore: update test262 to 70bc32edab22b44db9d671ce505db8842ae200b6 ( #13233 )
2021-04-29 21:50:43 -04:00
Babel Bot
fb908fd87e
Update test262 ( #13196 )
...
* chore: update test262 to eca69e2c95972a4c5780ef58fe1f1e53e871b9b1
* test262: add mapping for privateIn
* test262: ignored syntax-free features
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-04-23 10:40:54 +02:00
Karan Sapolia
b63be942ce
Use native ESM for dev scripts ( #12296 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-01-30 18:36:21 +01:00
Huáng Jùnliàng
2782a549e9
Refactor yield await classification ( #12230 )
...
* fix: incomplete ParamKind declaration
* refactor: add expression scope handler
* test: update test262 allowlist
* chore: cleanup
* fix: push expression scope for function body
* fix: push new expression scope for initializer and static block
* test: add more test cases
* fix flow error
* refactor: remove unecessary expression scope
* fix: parameter initializer error should not cross expression scope boundary
* chore: cleanup outdated comments
* fix: do not record async arrow error on ParameterDeclaration
* Update packages/babel-parser/src/util/expression-scope.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* polish: clear ancestry declaration error on validate
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-10-26 11:42:02 -04:00
Huáng Jùnliàng
1964c961ae
chore: update test262 tests ( #12204 )
2020-10-16 16:55:10 -04:00
Huáng Jùnliàng
e498bee10f
replace whitelist by allowlist in parser-tests ( #11727 )
2020-06-17 15:32:46 -04:00
Bogdan Savluk
4108524856
Update prettier to v2 ( #11579 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-06-07 22:21:33 +02:00
Justin Ridgewell
bda759ac3d
Handle private access chained on an optional chain ( #11248 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-05-26 22:18:17 +02:00
Huáng Jùnliàng
dcd23c7949
chore: update test262 ( #11590 )
2020-05-21 08:20:10 -05:00
Huáng Jùnliàng
81c5f1f22d
Disallow private name in object elements and TS type elements ( #10980 )
...
* fix: disallow private name in object member and TS type elements
* chore: update test262 whitelist
* chore: make flow happy
* Update packages/babel-parser/src/parser/expression.js
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* chore: update test fixtures
* Update packages/babel-parser/src/parser/expression.js
Co-Authored-By: Brian Ng <bng412@gmail.com>
* chore: update test fixtures
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-01-11 11:26:10 -05:00
Nicolò Ribaudo
771c730fda
[parser] Disallow duplicate and undeclared private names ( #10456 )
...
* [parser] Add private names tracking to Scope
- Disallow duplicate private names
- Disallow undeclared private names
* Update tests
* Test all possible duplications
* Test undeclared private names
* Better error message for top-level private names
* Fix flow
* Update test262 whitelist
* Update fixtures
* Update flow whitelist
* Remove old output.json
* Move ClassScopeHandler to a separate class
* Make the code readable
2020-01-10 02:22:05 +01:00
Huáng Jùnliàng
314513374d
chore: update test262 ( #10943 )
...
* chore: update test262
* chore: ignore untoggleable features
2019-12-29 21:35:19 -05:00
Nicolò Ribaudo
e74efd2c0a
Run parser tests from the official TypeScript parser ( #10444 )
2019-12-03 01:09:54 +01:00