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 an initial test for wasm multi-value. #17314

Merged
merged 5 commits into from Nov 14, 2019
Merged

Add an initial test for wasm multi-value. #17314

merged 5 commits into from Nov 14, 2019

Conversation

Ms2ger
Copy link
Contributor

@Ms2ger Ms2ger commented Jun 13, 2019

No description provided.

@Ms2ger
Copy link
Contributor Author

Ms2ger commented Jun 13, 2019

The last test appears to work in the V8 shell when passing --experimental-wasm-mv; I haven't found a way to enable the code within Chromium. The integration with the JS API is not yet implemented anywhere, AFAICT.

CC @rossberg

Copy link
Contributor

@littledan littledan left a comment

Choose a reason for hiding this comment

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

Tests look correct to me, but maybe you meant to include further coverage. To pass V8 flags from Chrome invoked on the command line, use --js-flags="--experimental-wasm-mv".

assert_true(Array.isArray(swapped));
assert_equals(Object.getPrototypeOf(swapped), Array.prototype);
assert_array_equals(swapped, [4.2, 7]);
}, "multiple return values from js to wasm");
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand how this is JS to Wasm. Did you mean to make further changes to this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It isn't, indeed. I removed this part; I'll submit a JS to wasm test at some later point.

@Ms2ger Ms2ger requested a review from xtuc November 14, 2019 09:15
@Ms2ger Ms2ger merged commit b8079ef into master Nov 14, 2019
@Ms2ger Ms2ger deleted the wasm-multi-value branch November 14, 2019 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants