* test(do-expr): condition before break
* test(do-expr): labeled break
* fix(do-expr): add check for break in BlockStatement
* fix(do-expr): add LabeledStatement case for getCompletionRecords
* test(do-expr): rename condition before break to condition before expression
* revert(do-expr): undo remove break for do switch
* revert(do-expr): undo remove labeled break
* test(do-expr): add condition before break
* test(do-expr): update condition before break
* test(do-expr): remove labeled break
* fix(do-expr): add tree search in findBreak
* fix(do-expr): ignore isFunction case in findBreak
* Throw a syntax error for a constructor with type parameters
* Modify to match error location with TypeScript
* Update typescript parser tests
Update allowlist.txt
* Fix `jsxDEV` for generated elements
* Throw invariant error
* Add test
* test: revise test layout
* fix: node 6 does not support trailing comma
* Use undefined node
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* chore: use yarn 2
* chore: remove redundant yarn locks
* chore: remove publishEslintPkg
* chore: remove redundant make bootstrap
* Update .yarnrc.yml
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
* chore: use workspace protocol for eslint packages in the root
Co-Authored-By: merceyz <merceyz@users.noreply.github.com>
* chore: pin caniuse-lite versions
Testcases in packages/babel-preset-env/test/fixtures/debug/browserslists-defaults-not-ie
depends on specific caniuse-lite versions. We pinned the version here
so we don't have to deal with fixture different in e2e-tests
where all deps will be updated and tested.
* chore: resolve yarn install warnings
* chore: update yarn cache path on circle/travis
* chore: add yarn deduplicate plugin
* chore: deduplicate lock files
* chore: move devDependencies to leaf packages
* chore: remove @yarnpkg/plugin-constraints
* chore: remove unused dedupe options
* test: fix unwanted self reference
* chore: remove output-file-sync dependency
* chore: update browserify to 16.5.2
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
* remove unused codes
* refactor: remove unused parseAccessModifier
* refactor: remove redundant async function checks
* refactor: remove redundant class check in checkExport
* add more parser test cases
* Update packages/babel-parser/src/parser/statement.js
Co-authored-by: Brian Ng <bng412@gmail.com>
* chore: add sourceType: unambiguous test
Co-authored-by: Brian Ng <bng412@gmail.com>
* Run exec tests in fresh contexts
* Reevaluate modules in every context
* Cache module code when running tests
* Eliminate weakmap accesses as much as possible
* Remove old multiline usage
* Using bundled polyfill to significantly increase performance
The individual requires for each file were the part that was sooooo slow.
* Drop LRU cache size
* Fixes
* Fix test
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* refactor: add recoverable error on accessorIsGenerator
* Update packages/babel-parser/src/parser/error-message.js
Co-authored-by: Brian Ng <bng412@gmail.com>
* Apply suggestions from code review
Co-authored-by: Brian Ng <bng412@gmail.com>
* Skip TSAsExpression when transforming spread in CallExpression
* Create @babel/helper-get-call-context package
* Support OptionalCallExpressions
* Use helper in optional chaining plugin, and move tests
* Update package.json files
* Use dot notation to access property
* Remove private method tests until future MR
* Update packages/babel-plugin-transform-spread/package.json
* Rename @babel/helper-get-call-context to @babel/helper-skip-transparent-expr-wrappers
* Handle typed OptionalMemberExpressions
* Make @babel/helper-skip-transparent-expr-wrappers a dependency
* Support TSNonNullExpressions
* Use named import instead of default
* Add test for call context when parenthesized call expression has type
* Improve handling of member expressions inside transparent expression wrappers
* Add comment explaining what a transparent expression wrapper is
* Add newlines to test fixtures
* Pass correct parameter type to skipTransparentExprWrappers
* Rename to babel-helper-skip-transparent-expression-wrappers
* Remove getCallContext helper
* Fixed exports key
* Preserve types in babel-plugin-transform-spread tests
* Use external-helpers to avoid inlining helper functions in tests
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* add support for logical assignments with private properties
Patches the logic for handling assignment operators and adds support for
handling the logical assignment operators appropriately.
Fixes: https://github.com/babel/babel/issues/11646
* replace hardcoded logical assignment operators with constant
Replace a hardcoded check for logical assignment operators with the
LOGICAL_OPERATORS constant in
plugin-proposal-logical-assignment-operators.
Refs: https://github.com/babel/babel/pull/11702#discussion_r438554423