summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/module/bug1488117.js
blob: 0ffe959545819bc01d6a4481e2ca4858df0c2f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |reftest| module

// Load and instantiate "bug1488117-import-namespace.js". "bug1488117-import-namespace.js"
// contains an |import*| request for the current module, which triggers GetModuleNamespace for
// this module. GetModuleNamespace calls GetExportedNames on the current module, which in turn
// resolves and calls GetExportedNames on all |export*| entries.
// And that means HostResolveImportedModule is called for "bug1488117-empty.js" before
// InnerModuleInstantiation for "bug1488117.js" has resolved that module file.

import "./bug1488117-import-namespace.js";
export* from "./bug1488117-empty.js";

if (typeof reportCompare === "function")
    reportCompare(0, 0);