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 value type to ExternalGlobal and check it at instantiate #493

Merged
merged 4 commits into from
Aug 19, 2020

Conversation

gumb0
Copy link
Collaborator

@gumb0 gumb0 commented Aug 17, 2020

This fixes the disabled instantiation test.

Not covered by spec tests.

@gumb0 gumb0 force-pushed the external-global-type branch 2 times, most recently from 9f53c73 to 3260379 Compare August 17, 2020 16:38
@codecov
Copy link

codecov bot commented Aug 17, 2020

Codecov Report

Merging #493 into master will increase coverage by 0.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #493      +/-   ##
==========================================
+ Coverage   99.56%   99.68%   +0.11%     
==========================================
  Files          54       54              
  Lines       17163    17202      +39     
==========================================
+ Hits        17089    17147      +58     
+ Misses         74       55      -19     

@gumb0 gumb0 changed the title Add value type to ExternalGlobal Add value type to ExternalGlobal and check it at instantiate Aug 17, 2020
@gumb0 gumb0 marked this pull request as ready for review August 17, 2020 17:23
@gumb0 gumb0 force-pushed the external-global-type branch 2 times, most recently from 88669a0 to 2e82cf4 Compare August 18, 2020 10:54
@gumb0 gumb0 requested review from chfast and axic August 18, 2020 11:13
EXPECT_THROW_MESSAGE(
instantiate(module2, {}, {}, {}, {*g}), instantiate_error, "type mismatch");
EXPECT_THROW_MESSAGE(instantiate(module2, {}, {}, {}, {*g}), instantiate_error,
"global 0 value type doesn't match module's global type");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Modify or and a test where non-0 global is wrong.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added a case to imported_globals_mismatched_type test

@gumb0 gumb0 force-pushed the external-global-type branch from 2e82cf4 to f62d860 Compare August 19, 2020 10:43
@axic axic force-pushed the external-global-type branch from f62d860 to 31ae7c6 Compare August 19, 2020 19:02
@gumb0 gumb0 merged commit 9183969 into master Aug 19, 2020
@gumb0 gumb0 deleted the external-global-type branch August 19, 2020 19:28
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