diff --git a/features.txt b/features.txt index 257f379ee65..daf629d03fd 100644 --- a/features.txt +++ b/features.txt @@ -85,6 +85,10 @@ json-superset # https://github.com/tc39/proposal-intl-locale Intl.Locale +# `export * as namespace from module` consensus PR +# https://github.com/tc39/ecma262/pull/1174 +export-star-as-namespace-from-module + # Standard language features # # Language features that have been included in a published version of the diff --git a/test/language/module-code/early-dup-export-as-star-as.js b/test/language/module-code/early-dup-export-as-star-as.js index 4610f5e691a..f188fde066a 100644 --- a/test/language/module-code/early-dup-export-as-star-as.js +++ b/test/language/module-code/early-dup-export-as-star-as.js @@ -5,7 +5,7 @@ esid: sec-module-semantics-static-semantics-early-errors description: > It is a Syntax Error if the ExportedNames of ModuleItemList contains any duplicate entries. -flags: [module] +flags: [module, export-star-as-namespace-from-module] negative: phase: parse type: SyntaxError diff --git a/test/language/module-code/early-dup-export-star-as-dflt.js b/test/language/module-code/early-dup-export-star-as-dflt.js index dfff197682b..3d8e8ce7871 100644 --- a/test/language/module-code/early-dup-export-star-as-dflt.js +++ b/test/language/module-code/early-dup-export-star-as-dflt.js @@ -5,7 +5,7 @@ esid: sec-module-semantics-static-semantics-early-errors description: > It is a Syntax Error if the ExportedNames of ModuleItemList contains any duplicate entries. -flags: [module] +flags: [module, export-star-as-namespace-from-module] negative: phase: parse type: SyntaxError diff --git a/test/language/module-code/eval-rqstd-once.js b/test/language/module-code/eval-rqstd-once.js index 391456d93bf..b9ddb863ab8 100644 --- a/test/language/module-code/eval-rqstd-once.js +++ b/test/language/module-code/eval-rqstd-once.js @@ -12,7 +12,7 @@ info: | b. Perform ? requiredModule.ModuleEvaluation(). [...] includes: [fnGlobalObject.js] -flags: [module] +flags: [module, export-star-as-namespace-from-module] ---*/ import {} from './eval-rqstd-once_FIXTURE.js'; diff --git a/test/language/module-code/eval-rqstd-order.js b/test/language/module-code/eval-rqstd-order.js index 18ed878b119..d15cb55b643 100644 --- a/test/language/module-code/eval-rqstd-order.js +++ b/test/language/module-code/eval-rqstd-order.js @@ -15,7 +15,7 @@ info: | 16. Let result be the result of evaluating module.[[ECMAScriptCode]]. [...] includes: [fnGlobalObject.js] -flags: [module] +flags: [module, export-star-as-namespace-from-module] ---*/ assert.sameValue(fnGlobalObject().test262, '123456789'); diff --git a/test/language/module-code/eval-self-once.js b/test/language/module-code/eval-self-once.js index 4270f9f88ef..d6f595dc603 100644 --- a/test/language/module-code/eval-self-once.js +++ b/test/language/module-code/eval-self-once.js @@ -21,7 +21,7 @@ info: | c. Set index to ? InnerModuleEvaluation(requiredModule, stack, index). [...] includes: [fnGlobalObject.js] -flags: [module] +flags: [module, export-star-as-namespace-from-module] ---*/ import {} from './eval-self-once.js'; diff --git a/test/language/module-code/instn-once.js b/test/language/module-code/instn-once.js index ad8e3f0fed6..040ee3a0cb6 100644 --- a/test/language/module-code/instn-once.js +++ b/test/language/module-code/instn-once.js @@ -20,7 +20,7 @@ info: | a. Let requiredModule be ? HostResolveImportedModule(module, required). b. Set index to ? InnerModuleInstantiation(requiredModule, stack, index). [...] -flags: [module] +flags: [module, export-star-as-namespace-from-module] ---*/ import {} from './instn-once.js'; diff --git a/test/language/module-code/instn-star-as-props-dflt-skip.js b/test/language/module-code/instn-star-as-props-dflt-skip.js index d9e1e1f32a8..b4532452cc8 100644 --- a/test/language/module-code/instn-star-as-props-dflt-skip.js +++ b/test/language/module-code/instn-star-as-props-dflt-skip.js @@ -40,7 +40,7 @@ info: | c. For each element n of starNames, do i. If SameValue(n, "default") is false, then [...] -flags: [module] +flags: [module, export-star-as-namespace-from-module] ---*/ import named from './instn-star-props-dflt-skip-star-as-named_FIXTURE.js'; diff --git a/test/language/module-code/instn-star-props-nrml.js b/test/language/module-code/instn-star-props-nrml.js index cd845b83fae..3a595536d18 100644 --- a/test/language/module-code/instn-star-props-nrml.js +++ b/test/language/module-code/instn-star-props-nrml.js @@ -24,7 +24,7 @@ info: | iii. If resolution is not "ambiguous", append name to unambiguousNames. d. Let namespace be ModuleNamespaceCreate(module, unambiguousNames). -flags: [module] +flags: [module, export-star-as-namespace-from-module] ---*/ import * as ns from './instn-star-props-nrml-1_FIXTURE.js'; diff --git a/test/language/module-code/namespace/internals/get-nested-namespace-dflt-skip.js b/test/language/module-code/namespace/internals/get-nested-namespace-dflt-skip.js index 5255fb413ee..c2cb7794ddf 100644 --- a/test/language/module-code/namespace/internals/get-nested-namespace-dflt-skip.js +++ b/test/language/module-code/namespace/internals/get-nested-namespace-dflt-skip.js @@ -25,8 +25,8 @@ info: | unambiguousNames. d. Let namespace be ModuleNamespaceCreate(module, unambiguousNames). [...] -flags: [module] - ---*/ +flags: [module, export-star-as-namespace-from-module] +---*/ import * as namedns1 from './get-nested-namespace-dflt-skip-named_FIXTURE.js'; import * as productionns1 from './get-nested-namespace-dflt-skip-prod_FIXTURE.js'; diff --git a/test/language/module-code/namespace/internals/get-nested-namespace-props-nrml.js b/test/language/module-code/namespace/internals/get-nested-namespace-props-nrml.js index 4d40ee0b9b9..a05b9f2c5d2 100644 --- a/test/language/module-code/namespace/internals/get-nested-namespace-props-nrml.js +++ b/test/language/module-code/namespace/internals/get-nested-namespace-props-nrml.js @@ -24,7 +24,7 @@ info: | iii. If resolution is not "ambiguous", append name to unambiguousNames. d. Let namespace be ModuleNamespaceCreate(module, unambiguousNames). -flags: [module] +flags: [module, export-star-as-namespace-from-module] ---*/ import * as ns from './get-nested-namespace-props-nrml-1_FIXTURE.js'; diff --git a/test/language/module-code/parse-err-semi-export-star.js b/test/language/module-code/parse-err-semi-export-star.js index 7839e3c71ff..72ff081f6ae 100644 --- a/test/language/module-code/parse-err-semi-export-star.js +++ b/test/language/module-code/parse-err-semi-export-star.js @@ -18,7 +18,7 @@ info: | negative: phase: parse type: SyntaxError -flags: [module] +flags: [module, export-star-as-namespace-from-module] ---*/ throw "Test262: This statement should not be evaluated."; diff --git a/test/language/module-code/parse-err-semi-name-space-export.js b/test/language/module-code/parse-err-semi-name-space-export.js index 88e289c772d..f47b498b4e6 100644 --- a/test/language/module-code/parse-err-semi-name-space-export.js +++ b/test/language/module-code/parse-err-semi-name-space-export.js @@ -19,7 +19,7 @@ info: | negative: phase: parse type: SyntaxError -flags: [module] +flags: [module, export-star-as-namespace-from-module] ---*/ throw "Test262: This statement should not be evaluated.";