Files
Huáng JùnliàngandGitHub d4081adaea Interepret parser allow* options as top level only (#17203)
* fix: set top level await when AllowAwaitOutsideFunction is true

* fix: set top level return when AllowReturnOutsideFunction is true

* fix: set top level super when AllowSuperOutsideMethod is true

* refactor: simplify new.targe scope check

* rename test suites

* fix: do not construct invalid js in template

* Revert "fix: set top level super when AllowSuperOutsideMethod is true"

This reverts commit 9a256c798c240ae957ccbc046fd5bb8db0ba2127.

# Conflicts:
#	packages/babel-parser/src/parser/util.ts
#	packages/babel-parser/test/fixtures/core/opts/allowSuperOutsideMethod-true-invalid-in-function-body/input.js
#	packages/babel-parser/test/fixtures/core/opts/allowSuperOutsideMethod-true-invalid-in-function-body/options.json
#	packages/babel-parser/test/fixtures/core/opts/allowSuperOutsideMethod-true-invalid-in-function-body/output.json

* polish: overwrite await using in async error

when await using is in ambient context

* add async-do allowReturnOutsideFunction test

* temporarily disable prettier async-do-expressions test
2025-06-23 09:42:09 -04:00
..
…