Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / instn-named-err-not-found-as.js
blobdb1421c966ad8339122155d2254f79d1e1a131ac
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.
4 /*---
5 description: Named import binding - resolution failure (not found)
6 esid: sec-moduledeclarationinstantiation
7 info: |
8     [...]
9     12. For each ImportEntry Record in in module.[[ImportEntries]], do
10         a. Let importedModule be ? HostResolveImportedModule(module,
11            in.[[ModuleRequest]]).
12         b. If in.[[ImportName]] is "*", then
13            [...]
14         c. Else,
15            i. Let resolution be ?
16               importedModule.ResolveExport(in.[[ImportName]], « », « »).
17            ii. If resolution is null or resolution is "ambiguous", throw a
18                SyntaxError exception.
20     15.2.1.16.3 ResolveExport
22     [...]
23     9. Let starResolution be null.
24     10. For each ExportEntry Record e in module.[[StarExportEntries]], do
25         [...]
26     11. Return starResolution.
27 negative:
28   phase: resolution
29   type: SyntaxError
30 flags: [module]
31 ---*/
33 $DONOTEVALUATE();
35 import { x as y } from './instn-named-err-not-found-empty_FIXTURE.js';