Closed
Description
I've been experimenting with the WebGLRenderingContext
bindings, and I've discovered that there's a weird interaction between the WebIDL types, wasm-bindgen
's type mapping, and what browsers actually support in their WebGL implementations. Basically, there are several methods which take a GLintptr
, which is a long long
, which wasm-bindgen
maps to i64
and BigInt
. But the actual API throws an exception if you pass it a BigNum
. Using an i32
or u32
seems to work fine.
The simple solution would seem to be changing the definition of GLintptr
in the WebIDL, but is there another alternative that isn't so hacky?