early-dup-assert-key-import-withbinding.js 669 B

12345678910111213141516171819202122232425
  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: >
  5. AssertClause may not have duplicate keys (import declaration with binding)
  6. esid: sec-modules
  7. info: |
  8. AssertClause:assert{AssertEntries,opt}
  9. - It is a Syntax Error if AssertClauseToAssertions of AssertClause has two
  10. entries a and b such that a.[[Key]] is b.[[Key]].
  11. features: [import-assertions]
  12. flags: [module]
  13. negative:
  14. phase: parse
  15. type: SyntaxError
  16. ---*/
  17. $DONOTEVALUATE();
  18. import x from './import-assertion-1_FIXTURE.js' assert {
  19. test262_a: '',
  20. test262_b: '',
  21. 'test262_\u0061': ''
  22. };