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.
5 description: Named import binding - default not found (excluding *)
6 esid: sec-moduledeclarationinstantiation
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
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
23 6. If SameValue(exportName, "default") is true, then
24 a. Assert: A default export was not explicitly defined by this module.
25 b. Throw a SyntaxError exception.
26 c. NOTE A default export cannot be provided by an export *.
35 import x from './instn-named-err-dflt-thru-star-int_FIXTURE.js';