Add 'import-assertions' feature tag to json modules tests (#3016)

* Add 'import-assertions' feature tag to json modules tests

* Add a couple of others that I missed
This commit is contained in:
Dan Clark 2021-06-24 11:13:45 -07:00 committed by GitHub
parent c8d75c3681
commit 966c76617e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 12 additions and 12 deletions

View File

@ -5,7 +5,7 @@ esid: sec-parse-json-module
description: Creates extensible arrays
flags: [module]
includes: [propertyHelper.js]
features: [json-modules]
features: [import-assertions, json-modules]
---*/
import value from './json-value-array_FIXTURE.json' assert { type: 'json' };

View File

@ -5,7 +5,7 @@ esid: sec-parse-json-module
description: Creates extensible objects
flags: [module]
includes: [propertyHelper.js]
features: [json-modules]
features: [import-assertions, json-modules]
---*/
import value from './json-value-object_FIXTURE.json' assert { type: 'json' };

View File

@ -4,7 +4,7 @@
esid: sec-parse-json-module
description: The same object representation is returned to all import sites
flags: [module, async]
features: [json-modules, globalThis, dynamic-import]
features: [import-assertions, json-modules, globalThis, dynamic-import]
---*/
import viaStaticImport1 from './json-idempotency_FIXTURE.json' assert { type: 'json' };

View File

@ -12,7 +12,7 @@ info: |
1. Let json be ? Call(%JSON.parse%, undefined, « source »).
2. Return CreateDefaultExportSyntheticModule(json).
flags: [module]
features: [json-modules]
features: [import-assertions, json-modules]
negative:
phase: parse
type: SyntaxError

View File

@ -9,7 +9,7 @@ info: |
This was ultimately rejected, so attempting to import in this way should
produce a SyntaxError.
flags: [module]
features: [json-modules]
features: [import-assertions, json-modules]
negative:
phase: parse
type: SyntaxError

View File

@ -16,7 +16,7 @@ info: |
module record includes non-printable characters (specifically, all four forms
of JSON's so-called "whitespace" token) both before and after the "value."
flags: [module]
features: [json-modules]
features: [import-assertions, json-modules]
---*/
import value from './json-value-array_FIXTURE.json' assert { type: 'json' };

View File

@ -12,7 +12,7 @@ info: |
1. Let json be ? Call(%JSON.parse%, undefined, « source »).
2. Return CreateDefaultExportSyntheticModule(json).
flags: [module]
features: [json-modules]
features: [import-assertions, json-modules]
---*/
import value from './json-value-boolean_FIXTURE.json' assert { type: 'json' };

View File

@ -12,7 +12,7 @@ info: |
1. Let json be ? Call(%JSON.parse%, undefined, « source »).
2. Return CreateDefaultExportSyntheticModule(json).
flags: [module]
features: [json-modules]
features: [import-assertions, json-modules]
---*/
import value from './json-value-null_FIXTURE.json' assert { type: 'json' };

View File

@ -12,7 +12,7 @@ info: |
1. Let json be ? Call(%JSON.parse%, undefined, « source »).
2. Return CreateDefaultExportSyntheticModule(json).
flags: [module]
features: [json-modules]
features: [import-assertions, json-modules]
---*/
import value from './json-value-number_FIXTURE.json' assert { type: 'json' };

View File

@ -17,7 +17,7 @@ info: |
of JSON's so-called "whitespace" token) both before and after the "value."
flags: [module]
includes: [propertyHelper.js]
features: [json-modules]
features: [import-assertions, json-modules]
---*/
import value from './json-value-object_FIXTURE.json' assert { type: 'json' };

View File

@ -12,7 +12,7 @@ info: |
1. Let json be ? Call(%JSON.parse%, undefined, « source »).
2. Return CreateDefaultExportSyntheticModule(json).
flags: [module]
features: [json-modules]
features: [import-assertions, json-modules]
---*/
import value from './json-value-string_FIXTURE.json' assert { type: 'json' };

View File

@ -4,7 +4,7 @@
esid: sec-parse-json-module
description: May be imported via a module namespace object
flags: [module]
features: [json-modules]
features: [import-assertions, json-modules]
---*/
import * as ns from './json-via-namespace_FIXTURE.json' assert { type: 'json' };