Skip to content

Conversation

guybedford
Copy link
Contributor

This upstreams the new jsapi test suite from the WebAssembly ESM Integration per WebAssembly/esm-integration#110.

Some of these tests replicate functionality already in the webapi test suite, but also includes recent normative changes including:

assert_equals(instance.exports.getGlobal(), 999);

instance.exports.setGlobal(888);
assert_equals(wasmNamespace.getGlobal(), 888);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we also assert that the same instance object is returned each call?

Is it also expected that doing multiple await import(X) for the same X will result in the same module namespace and instance objects?

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

Successfully merging this pull request may close these issues.

4 participants