wasm-bindgen icon indicating copy to clipboard operation
wasm-bindgen copied to clipboard

Facilitating high-level interactions between Wasm modules and JavaScript

Results 412 wasm-bindgen issues
Sort by recently updated
recently updated
newest added

Bindgen output contains: ```js const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); ``` This gives...

bug

### Motivation With the explicit resource management proposal moving to stage 4 (https://bsky.app/profile/robpalmer.bsky.social/post/3lqaieimpq222), and every major runtime and browser supporting it by default now (https://v8.dev/features/explicit-resource-management), we should remove the experimental...

enhancement

### Describe the Bug Closely related to #4395 - `TypedArray::from` with slice input sporadically fails: "Cannot perform Construct on a detached ArrayBuffer". It uses `TypedArray::view`: https://github.com/rustwasm/wasm-bindgen/blob/c35cc9369d5e0dc418986f7811a0dd702fb33ef9/crates/js-sys/src/lib.rs#L6379-L6385 Note that the function...

bug

### Summary Is it possible to run wasm-bindgen/walrus or even wasm-pack somehow to compile & create correctly the bindings between rust code compiled to wasm64-unknown-unknown and javascript? If not, would...

question

This matches the latest spec. There is also a 3-argument overload of `copyBufferToBuffer`, which I have not added, as it poses some additional challenges, and I do not immediately need...

### Describe the Bug compiler reports "error: extern blocks must be unsafe" on compiling the following extern "C" { fn c_function_name(x: i32) -> i32; //fn c_function_name(); } Even when wrapped...

bug

### Motivation resolves #4451 Currently if a function/method has a generic return or arguments type like: ```rust pub fn some_fn(arg: SomeType) -> SomeType {} // or pub fn some_fn(arg: SomeType)...

Add missing isPointInFill and isPointInStroke methods to SVGGeometryElement idl. Fixes #4507 --- For the fix, I read the contributing guidelines regarding the web-sys package. Once I figured out how the...