instn-star-err-not-found.js (1121B)
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: > 6 Importing a namespace for a module which contains an unresolvable named 7 export 8 esid: sec-moduledeclarationinstantiation 9 info: | 10 [...] 11 12. For each ImportEntry Record in in module.[[ImportEntries]], do 12 a. Let importedModule be ? HostResolveImportedModule(module, 13 in.[[ModuleRequest]]). 14 b. If in.[[ImportName]] is "*", then 15 i. Let namespace be ? GetModuleNamespace(importedModule). 16 [...] 17 18 15.2.1.18 Runtime Semantics: GetModuleNamespace 19 20 [...] 21 3. If namespace is undefined, then 22 [...] 23 c. For each name that is an element of exportedNames, 24 i. Let resolution be ? module.ResolveExport(name, « », « »). 25 ii. If resolution is null, throw a SyntaxError exception. 26 negative: 27 phase: resolution 28 type: SyntaxError 29 flags: [module] 30 ---*/ 31 32 $DONOTEVALUATE(); 33 34 import * as ns from './instn-star-err-not-found-faulty_FIXTURE.js';