Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for JSON modules #2999

Merged
merged 2 commits into from
May 29, 2021
Merged

Add tests for JSON modules #2999

merged 2 commits into from
May 29, 2021

Conversation

jugglinmike
Copy link
Contributor

Designate the files which are intended to be interpreted as JSON modules
via a distinct file name suffix. Differentiating JSON files in this way
will assist consumers which require special handling of such files (e.g.
web browsers).

Change the pattern used to designate "fixture" files so that it may be
applied to files used for JSON modules.

Increment the project version number to alert consumers of this change
in interpreting instructions.

@jugglinmike jugglinmike requested a review from rwaldron May 28, 2021 20:41
jugglinmike added a commit to bocoup/test262-stream that referenced this pull request May 28, 2021
A change in Test262's interpreting guidelines was proposed via the
following patch:

tc39/test262#2999
jugglinmike added a commit to bocoup/test262-stream that referenced this pull request May 28, 2021
A change in Test262's interpreting guidelines was proposed via the
following patch:

tc39/test262#2999

Accomodating this change does not interfere with test262-stream's
compatability with prior versions of Test262 because none of the tests
present in prior versions used the sequence `_FIXTURE` in file names for
anything other than fixture files.
Copy link
Contributor

@rwaldron rwaldron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check linting errors

rwaldron pushed a commit to bocoup/test262-stream that referenced this pull request May 28, 2021
A change in Test262's interpreting guidelines was proposed via the
following patch:

tc39/test262#2999

Accomodating this change does not interfere with test262-stream's
compatability with prior versions of Test262 because none of the tests
present in prior versions used the sequence `_FIXTURE` in file names for
anything other than fixture files.
This change is in service of forthcoming tests for the "JSON modules"
language proposal [1]. Verifying the semantics of that proposal requires
modules whose source text is not valid ECMAScript; this change updates
the guidelines for contributing and interpreting tests so that such test
material can be handled consistently.

Differentiating JSON files with a distinct file name suffice will assist
consumers which require special handling of such files (e.g. web
browsers).

Change the pattern used to designate "fixture" files so that it may be
applied to files used for JSON modules.

Increment the project version number to alert consumers of this change
in interpreting instructions.

[1] https://github.com/tc39/proposal-json-modules
https://github.com/tc39/proposal-json-modules

This proposal advanced to Stage 3 of TC39's standardization process on
2021-01-27.
@jugglinmike
Copy link
Contributor Author

Got it Rick. I've split the infrastructural changes into a dedicated commit which precedes the commit introducing the "JSON modules" tests.

@wangxiang365

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants