instn-resolve-empty-export.js (1195B)
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 A NamedExport without an ExportsList contributes to the list of requested 7 modules 8 esid: sec-moduledeclarationinstantiation 9 info: | 10 [...] 11 8. For each String required that is an element of 12 module.[[RequestedModules]] do, 13 a. NOTE: Before instantiating a module, all of the modules it requested 14 must be available. An implementation may perform this test at any 15 time prior to this point. 16 b. Let requiredModule be ? HostResolveImportedModule(module, required). 17 c. Perform ? requiredModule.ModuleDeclarationInstantiation(). 18 19 15.2.2.5 Static Semantics: ModuleRequests 20 21 ImportDeclaration : import ImportClause FromClause; 22 23 1. Return ModuleRequests of FromClause. 24 25 15.2.3 Exports 26 27 Syntax 28 29 NamedExport: 30 { } 31 { ExportsList } 32 { ExportsList , } 33 negative: 34 phase: resolution 35 type: SyntaxError 36 flags: [module] 37 ---*/ 38 39 $DONOTEVALUATE(); 40 41 export {} from './instn-resolve-empty-export_FIXTURE.js';