mirror of https://github.com/tc39/test262.git
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:
parent
c8d75c3681
commit
966c76617e
|
@ -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' };
|
||||
|
|
|
@ -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' };
|
||||
|
|
|
@ -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' };
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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' };
|
||||
|
|
|
@ -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' };
|
||||
|
|
|
@ -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' };
|
||||
|
|
|
@ -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' };
|
||||
|
|
|
@ -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' };
|
||||
|
|
|
@ -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' };
|
||||
|
|
|
@ -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' };
|
||||
|
|
Loading…
Reference in New Issue