summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/module-code/instn-named-bndng-dflt-named.js
blob: f5bbf5030bfa1c4e8ddfb34c365093b4760bf241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// |reftest| module
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
    An ImportClause may contain both an ImportedDefaultBinding and NamedImports
esid: sec-imports
info: |
    Syntax

    ImportClause:
      ImportedDefaultBinding
      NameSpaceImport
      NamedImports
      ImportedDefaultBinding , NameSpaceImport
      ImportedDefaultBinding , NamedImports
flags: [module]
---*/

assert.throws(ReferenceError, function() {
  typeof x;
});

assert.sameValue(y, undefined);

export default 3;
export var attr;
import x, { attr as y } from './instn-named-bndng-dflt-named.js';

reportCompare(0, 0);