This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
Factor reference tests for the proposal to avoid confusion #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in the context of the proposal for the sign extension ops, we should keep tests introduced by a proposal in separate files until the proposal is stable, so that it is easier for implementations to handle the new tests without having to deal with any other changes to the test file where the tests eventually belong.
This patch factors the tests for the exportable/importable mutable globals into separate files, core/globals_proposed.wast and core/linking_proposed. wast. Eventually these should be merged into globals.wast and linking.wast, or renamed in some way to remove the "_proposed" suffix.
The present proposal has a unique challenge in that it actually invalidates existing semantics in a corner case, so some existing tests have to be removed (from globals.wast). I have opted here to comment them out, as documentation, so that they can be removed eventually when the proposal has been approved.