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

[feat] js_sys resizable ArrayBuffer related fn #4415

Open
loynoir opened this issue Jan 27, 2025 · 0 comments
Open

[feat] js_sys resizable ArrayBuffer related fn #4415

loynoir opened this issue Jan 27, 2025 · 0 comments

Comments

@loynoir
Copy link

loynoir commented Jan 27, 2025

Motivation

A clear and concise description of what the motivation for the new feature is, and what problem it is solving.

https://github.com/rustwasm/wasm-bindgen/blob/main/crates/js-sys/src/lib.rs#L831-L844

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/ArrayBuffer

Optional option optional field maxByteLength is missing

The maximum size, in bytes, that the array buffer can be resized to.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize

.resize() is missing

Proposed Solution

A clear and concise description of the feature you would like to add, and how it solves the motivating problem.

Add new_with_max_byte_length and resize to js sys

Alternatives

A clear and concise description of any alternative solutions or features you've considered, and why you're proposed solution is better.

Additional Context

Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant