Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / instn-star-props-dflt-keep-indirect.js
blob6f8ca550ca94fcb9d9d75079b16418dee6026008
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     Indirect default exports are included in the module namespace object
7 esid: sec-moduledeclarationinstantiation
8 info: |
9     [...]
10     12. For each ImportEntry Record in in module.[[ImportEntries]], do
11         a. Let importedModule be ? HostResolveImportedModule(module,
12            in.[[ModuleRequest]]).
13         b. If in.[[ImportName]] is "*", then
14            i. Let namespace be ? GetModuleNamespace(importedModule).
15     [...]
17     15.2.1.18 Runtime Semantics: GetModuleNamespace
19     [...]
20     3. If namespace is undefined, then
21        a. Let exportedNames be ? module.GetExportedNames(« »).
22        [...]
24     15.2.1.16.2 GetExportedNames
26     [...]
27     6. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
28        a. Assert: module imports a specific binding for this export.
29        b. Append e.[[ExportName]] to exportedNames.
30     [...]
31 flags: [module]
32 ---*/
34 import * as ns from './instn-star-props-dflt-keep-indirect-reexport_FIXTURE.js';
36 assert.sameValue('default' in ns, true);
38 reportCompare(0, 0);