Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / instn-iee-iee-cycle.js
blob0adf22bbff64cff6d28766bc9461989727812fc5
1 // |reftest| 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.
4 /*---
5 description: >
6     There are no restrictions on the number of cycles during module traversal
7     during indirect export resolution, given unique export names.
8 esid: sec-moduledeclarationinstantiation
9 info: |
10     [...]
11     9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
12        a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
13        b. If resolution is null or resolution is "ambiguous", throw a
14           SyntaxError exception.
16     15.2.1.16.3 ResolveExport( exportName, resolveSet, exportStarSet )
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.
22           ii. Return null.
23     3. Append the Record {[[Module]]: module, [[ExportName]]: exportName} to resolveSet.
24     [...]
25     5. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
26        a. If SameValue(exportName, e.[[ExportName]]) is true, then
27           i. Assert: module imports a specific binding for this export.
28           ii. Let importedModule be ? HostResolveImportedModule(module,
29               e.[[ModuleRequest]]).
30           iii. Let indirectResolution be ?
31                importedModule.ResolveExport(e.[[ImportName]], resolveSet,
32                exportStarSet).
33           iv. If indirectResolution is not null, return indirectResolution.
34 flags: [module]
35 ---*/
37 export { a } from './instn-iee-iee-cycle-2_FIXTURE.js';
38 export { c as b } from './instn-iee-iee-cycle-2_FIXTURE.js';
39 export { e as d } from './instn-iee-iee-cycle-2_FIXTURE.js';
40 export { g as f } from './instn-iee-iee-cycle-2_FIXTURE.js';
41 export { i as h } from './instn-iee-iee-cycle-2_FIXTURE.js';
42 export { k as j } from './instn-iee-iee-cycle-2_FIXTURE.js';
43 export { m as l } from './instn-iee-iee-cycle-2_FIXTURE.js';
44 export { o as n } from './instn-iee-iee-cycle-2_FIXTURE.js';
45 export { q as p } from './instn-iee-iee-cycle-2_FIXTURE.js';
46 export { s as r } from './instn-iee-iee-cycle-2_FIXTURE.js';
47 export { u as t } from './instn-iee-iee-cycle-2_FIXTURE.js';
48 export { w as v } from './instn-iee-iee-cycle-2_FIXTURE.js';
49 export { y as x } from './instn-iee-iee-cycle-2_FIXTURE.js';
50 export var z;
52 reportCompare(0, 0);