export-default-function-declaration-binding-exists.js 556 B

123456789101112131415161718192021222324
  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 : FunctionDeclaration
  6. esid: prod-HoistableDeclaration
  7. info: |
  8. ExportDeclaration :
  9. HoistableDeclaration[Yield, Await, Default]:
  10. HoistableDeclaration[Yield, Await, Default]:
  11. FunctionDeclaration[?Yield, ?Await, ?Default]
  12. flags: [module]
  13. negative:
  14. phase: parse
  15. type: SyntaxError
  16. ---*/
  17. $DONOTEVALUATE();
  18. class F {}
  19. export default function F() {}