Skip to content

js globals: return JsString rather than String #302

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

Merged
merged 3 commits into from
Jun 24, 2018

Conversation

ohanar
Copy link
Member

@ohanar ohanar commented Jun 24, 2018

This reduces the need to copy strings in and out of wasm memory. We should also potentially consider doing the same for arguments (rather than taking &str).

#[test]
// TODO: test seems to be system dependent, disable for now
// #[test]
#[allow(dead_code)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point.

@ohanar ohanar merged commit 243f73e into rustwasm:master Jun 24, 2018
@ohanar ohanar deleted the JsString branch June 25, 2018 23:40
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