-
Notifications
You must be signed in to change notification settings - Fork 38
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
Conversation
9f53c73
to
3260379
Compare
Codecov Report
@@ 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 |
88669a0
to
2e82cf4
Compare
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"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
2e82cf4
to
f62d860
Compare
f62d860
to
31ae7c6
Compare
This fixes the disabled instantiation test.
Not covered by spec tests.