Debian Codegraph @

js/src/tests/test262/language/module-code/instn-named-bndng-dflt-star.js

raw
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 a
7 NameSpaceImport
8 esid: sec-imports
9 info: |
10 Syntax
11
12 ImportClause:
13 ImportedDefaultBinding
14 NameSpaceImport
15 NamedImports
16 ImportedDefaultBinding , NameSpaceImport
17 ImportedDefaultBinding , NamedImports
18 flags: [module]
19 ---*/
20
21 assert.throws(ReferenceError, function() {
22 typeof x;
23 });
24
25 assert('attr' in ns);
26
27 export default 3;
28 export var attr;
29 import x, * as ns from './instn-named-bndng-dflt-star.js';
30
31 reportCompare(0, 0);