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.
6 ExportsList in ExportDeclaration may include a trailing comma
7 esid: sec-moduledeclarationinstantiation
10 9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
11 a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
16 export { a , } from './instn-iee-trlng-comma_FIXTURE.js';
17 export { a as b , } from './instn-iee-trlng-comma_FIXTURE.js';
19 import { a, b } from './instn-iee-trlng-comma.js';
21 assert.sameValue(a, 333, 'comma following named export');
22 assert.sameValue(b, 333, 'comma following re-named export');