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

Update and improve tests #24

Open
wants to merge 1 commit into
base: old
Choose a base branch
from

Conversation

thibaudmichaud
Copy link
Contributor

  • Update tests that relied on the old API, where export wrappers were allowed to return "non-promisified" results.
  • Add new tests ported from the V8 test suite
  • Avoid dependency on wasm exception handling

- Update tests that relied on the old API, where export wrappers were
  allowed to return "non-promisified" results.
- Add new tests ported from the V8 test suite
- Avoid dependency on wasm exception handling
@@ -149,19 +152,21 @@ test(() => {
{suspending: 'first'});
let instance = builder.instantiate({m: {import: wasm_js_import}});
let wrapped_export = ToPromising(instance.exports.test);
assert_equals(42, wrapped_export());
wrapped_export();
// The global was updated synchronously.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it correct that with amends in PR #16 this global will not be updated synchronously.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is correct. But note that this PR has some downsides and it is not clear at this point whether it will make it into the proposal. Ping @fgmccabe who has been thinking about this issue recently.

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.

2 participants