summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/module-code/export-expname-from-binding-string.js
blob: 7cf53c283f41a1f3c8d01c36d64410b23579807f (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
// |reftest| module
// Copyright (C) 2020 Bradley Farias. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
  ExportSpecifier : ModuleExportName
  esid: prod-ExportSpecifier
info: |
  ExportFromClause :
    NamedExports[+From]

  ExportSpecifier[From] :
    IdentifierName `as` ModuleExportName

  ModuleExportName : StringLiteral

flags: [module]
features: [arbitrary-module-namespace-names]
---*/
import * as Scouts from "./export-expname-from-binding-string.js";
export { Mercury as "☿" } from "./export-expname_FIXTURE.js";

assert.sameValue(Scouts.Mercury, undefined);
assert.sameValue(Scouts["☿"], globalThis.Mercury);

reportCompare(0, 0);