Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / instn-iee-trlng-comma.js
blob175e5ddbc0d810ffe7bce5bdc28cd278cac67425
1 // |reftest| 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     ExportsList in ExportDeclaration may include a trailing comma
7 esid: sec-moduledeclarationinstantiation
8 info: |
9     [...]
10     9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
11        a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
12        [...]
13 flags: [module]
14 ---*/
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');
24 reportCompare(0, 0);