early-export-ill-formed-string.js 758 B

12345678910111213141516171819202122232425
  1. // Copyright (C) 2020 Bradley Farias. All rights reserved.
  2. // This code is governed by the BSD license found in the LICENSE file.
  3. /*---
  4. description: >
  5. Ill formed unicode cannot be an exported name
  6. esid: sec-module-semantics
  7. info: |
  8. ModuleExportName : StringLiteral
  9. It is a Syntax Error if IsStringWellFormedUnicode of the StringValue of StringLiteral is *false*.
  10. flags: [module]
  11. negative:
  12. phase: parse
  13. type: SyntaxError
  14. features: [arbitrary-module-namespace-names]
  15. ---*/
  16. $DONOTEVALUATE();
  17. // 🌙 is '\uD83C\uDF19'
  18. export {Moon as "\uD83C",} from "./early-export-ill-formed-string.js";
  19. export {"\uD83C"} from "./early-export-ill-formed-string.js";
  20. import {'\uD83C' as Usagi} from "./early-export-ill-formed-string.js";
  21. function Moon() {}