Debian Codegraph @

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