early-export-global.js 580 B

12345678910111213141516171819
  1. // Copyright (C) 2015 the V8 project authors. All rights reserved.
  2. // This code is governed by the BSD license found in the LICENSE file.
  3. /*---
  4. esid: sec-module-semantics-static-semantics-early-errors
  5. es6id: 15.2.1.1
  6. description: Exporting a global binding
  7. info: |
  8. It is a Syntax Error if any element of the ExportedBindings of
  9. ModuleItemList does not also occur in either the VarDeclaredNames of
  10. ModuleItemList, or the LexicallyDeclaredNames of ModuleItemList.
  11. flags: [module]
  12. negative:
  13. phase: parse
  14. type: SyntaxError
  15. ---*/
  16. $DONOTEVALUATE();
  17. export { Number };