Skip to content

Commit

Permalink
export-ns: add feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerie R Young committed Jun 7, 2018
1 parent 7e4f89c commit 71373f9
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/language/module-code/early-dup-export-as-star-as.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/language/module-code/early-dup-export-star-as-dflt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/language/module-code/eval-rqstd-once.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion test/language/module-code/eval-rqstd-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion test/language/module-code/eval-self-once.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion test/language/module-code/instn-once.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion test/language/module-code/instn-star-as-props-dflt-skip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion test/language/module-code/instn-star-props-nrml.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion test/language/module-code/parse-err-semi-export-star.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down

0 comments on commit 71373f9

Please sign in to comment.