Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / instn-named-bndng-dflt-named.js
blobf5bbf5030bfa1c4e8ddfb34c365093b4760bf241
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     An ImportClause may contain both an ImportedDefaultBinding and NamedImports
7 esid: sec-imports
8 info: |
9     Syntax
11     ImportClause:
12       ImportedDefaultBinding
13       NameSpaceImport
14       NamedImports
15       ImportedDefaultBinding , NameSpaceImport
16       ImportedDefaultBinding , NamedImports
17 flags: [module]
18 ---*/
20 assert.throws(ReferenceError, function() {
21   typeof x;
22 });
24 assert.sameValue(y, undefined);
26 export default 3;
27 export var attr;
28 import x, { attr as y } from './instn-named-bndng-dflt-named.js';
30 reportCompare(0, 0);