Debian Codegraph @

js/src/tests/test262/language/module-code/instn-iee-err-dflt-thru-star-as.js

raw
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: IndirectExportEntries validation - default not found (excluding *)
6 esid: sec-moduledeclarationinstantiation
7 info: |
8 [...]
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.
13 [...]
14
15 15.2.1.16.3 ResolveExport
16
17 [...]
18 6. If SameValue(exportName, "default") is true, then
19 a. Assert: A default export was not explicitly defined by this module.
20 b. Throw a SyntaxError exception.
21 c. NOTE A default export cannot be provided by an export *.
22 negative:
23 phase: resolution
24 type: SyntaxError
25 flags: [module]
26 ---*/
27
28 $DONOTEVALUATE();
29
30 export { default as x } from './instn-iee-err-dflt-thru-star-int_FIXTURE.js';