1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 description: IndirectExportEntries validation - circular imported bindings
6 esid: sec-moduledeclarationinstantiation
9 9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
10 a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
11 b. If resolution is null or resolution is "ambiguous", throw a
12 SyntaxError exception.
15 15.2.1.16.3 ResolveExport
18 2. For each Record {[[Module]], [[ExportName]]} r in resolveSet, do:
19 a. If module and r.[[Module]] are the same Module Record and
20 SameValue(exportName, r.[[ExportName]]) is true, then
21 i. Assert: this is a circular import request.
31 export { x } from './instn-iee-err-circular_FIXTURE.js';