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

Bind more Typed Array constructors in js-sys #970

Merged
merged 1 commit into from
Oct 17, 2018

Conversation

alexcrichton
Copy link
Contributor

Bind new Int8Array(length), new Int8Array(buffer, offset) and new Int8Array(buffer, offset, length).

Bind `new Int8Array(length)`, `new Int8Array(buffer, offset)` and `new
Int8Array(buffer, offset, length)`.
Copy link
Member

@sendilkumarn sendilkumarn left a comment

Choose a reason for hiding this comment

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

LGTM. But I am curious to know, whether we can generate this with some macro for all the typed arrays? Simplifies a lot of code and duplication wont it?

@alexcrichton
Copy link
Contributor Author

We can certainly consider that yeah! I think the documentation may be harder but we could probably figure out a way

@alexcrichton alexcrichton merged commit ab8be88 into rustwasm:master Oct 17, 2018
@alexcrichton alexcrichton deleted the more-new branch October 17, 2018 14:57
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