export-default-asyncgenerator-declaration-binding-exists.js 577 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2020 Rick Waldron. All rights reserved.
  2. // This code is governed by the BSD license found in the LICENSE file.
  3. /*---
  4. description: >
  5. ExportDeclaration : HoistableDeclaration : AsyncGeneratorDeclaration
  6. esid: prod-HoistableDeclaration
  7. info: |
  8. ExportDeclaration :
  9. HoistableDeclaration[Yield, Await, Default]:
  10. HoistableDeclaration[Yield, Await, Default]:
  11. AsyncGeneratorDeclaration[?Yield, ?Await, ?Default]
  12. flags: [module]
  13. negative:
  14. phase: parse
  15. type: SyntaxError
  16. ---*/
  17. $DONOTEVALUATE();
  18. class AG {}
  19. export default async function * AG() {}