summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/module-code/export-expname-from-string-binding.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/module-code/export-expname-from-string-binding.js')
-rw-r--r--js/src/tests/test262/language/module-code/export-expname-from-string-binding.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/module-code/export-expname-from-string-binding.js b/js/src/tests/test262/language/module-code/export-expname-from-string-binding.js
new file mode 100644
index 0000000000..31d5f22e02
--- /dev/null
+++ b/js/src/tests/test262/language/module-code/export-expname-from-string-binding.js
@@ -0,0 +1,24 @@
+// |reftest| module
+// Copyright (C) 2020 Bradley Farias. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+description: >
+ ExportFromClause : NamedExports
+ esid: prod-ExportFromClause
+info: |
+ ExportFromClause :
+ NamedExports[+From]
+
+ NamedExports[From] :
+ [+From] ModuleExportName as IdentifierName
+
+flags: [module]
+features: [arbitrary-module-namespace-names]
+---*/
+import * as Scouts from "./export-expname-from-string-binding.js";
+export { "☿" as Ami } from "./export-expname_FIXTURE.js";
+
+assert.sameValue(Scouts["☿"], undefined);
+assert.sameValue(Scouts.Ami, globalThis.Mercury);
+
+reportCompare(0, 0);