add Arbitrary module namespace names feature

This commit is contained in:
Gus Caplan 2020-09-30 11:00:12 -05:00 committed by Rick Waldron
parent f4ec59ad38
commit ad8a5e9940
10 changed files with 13 additions and 0 deletions

View File

@ -188,6 +188,10 @@ Array.prototype.item
String.prototype.item
TypedArray.prototype.item
# Arbitrary module namespace names
# https://github.com/tc39/ecma262/pull/2154
arbitrary-module-namespace-names
## Standard language features
#
# Language features that have been included in a published version of the

View File

@ -12,6 +12,7 @@ negative:
flags: module
phase: parse
type: SyntaxError
features: [arbitrary-module-namespace-names]
---*/
$DONOTEVALUATE();

View File

@ -10,6 +10,7 @@ info: |
ModuleExportName : StringLiteral
flags: [module]
features: [arbitrary-module-namespace-names]
---*/
import * as Scouts from "./export-expname_FIXTURE.js";

View File

@ -14,6 +14,7 @@ info: |
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";

View File

@ -11,6 +11,7 @@ info: |
ModuleExportName : StringLiteral
flags: [module]
features: [arbitrary-module-namespace-names]
---*/
import * as Scouts from "./export-expname-from-star-string.js";
export * as "All" from "./export-expname_FIXTURE.js";

View File

@ -9,6 +9,7 @@ info: |
`*`
flags: [module]
features: [arbitrary-module-namespace-names]
---*/
import * as Scouts from "./export-expname-from-star.js";
export * from "./export-expname_FIXTURE.js";

View File

@ -12,6 +12,7 @@ info: |
[+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";

View File

@ -12,6 +12,7 @@ info: |
[+From] ModuleExportName as ModuleExportName
flags: [module]
features: [arbitrary-module-namespace-names]
---*/
import * as Scouts from "./export-expname-from-string-string.js";
export { "☿" as "Ami" } from "./export-expname_FIXTURE.js";

View File

@ -14,6 +14,7 @@ info: |
ModuleExportName : StringLiteral
flags: [module]
features: [arbitrary-module-namespace-names]
---*/
import * as Scouts from "./export-expname-from-string.js";
export { "☿" } from "./export-expname_FIXTURE.js";

View File

@ -10,6 +10,7 @@ info: |
ModuleExportName `as` IdentifierName
flags: [module]
features: [arbitrary-module-namespace-names]
---*/
import { "☿" as Ami } from "./export-expname_FIXTURE.js";