Skip to content

Array.prototype.filter #314

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 2 commits into from
Jun 25, 2018
Merged

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Jun 25, 2018

The key to making the higher order functions like Array.prototype.filter work, is to not take values by reference in the closure. That is a little too tricky for the macros in src/{convert,describe}.rs and is also unnecessary since these things are all indices into a table under the hood anyways -- not something that is too big to efficiently pass directly.

@ohanar
Copy link
Member

ohanar commented Jun 25, 2018

Looks good to me.

@ohanar ohanar merged commit 947dfbe into rustwasm:master Jun 25, 2018
@fitzgen fitzgen deleted the Array.prototype.filter branch June 25, 2018 23:50
seako pushed a commit to seako/wasm-bindgen that referenced this pull request Jun 28, 2018
alexcrichton pushed a commit that referenced this pull request Jun 28, 2018
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