early-dup-assert-key-export.js 652 B

123456789101112131415161718192021222324
  1. // Copyright (C) 2021 the V8 project authors. All rights reserved.
  2. // This code is governed by the BSD license found in the LICENSE file.
  3. /*---
  4. description: AssertClause may not have duplicate keys (export declaration)
  5. esid: sec-modules
  6. info: |
  7. AssertClause:assert{AssertEntries,opt}
  8. - It is a Syntax Error if AssertClauseToAssertions of AssertClause has two
  9. entries a and b such that a.[[Key]] is b.[[Key]].
  10. features: [import-assertions]
  11. flags: [module]
  12. negative:
  13. phase: parse
  14. type: SyntaxError
  15. ---*/
  16. $DONOTEVALUATE();
  17. export * from './import-assertion-3_FIXTURE.js' assert {
  18. test262_a: '',
  19. test262_b: '',
  20. 'test262_\u0061': ''
  21. };