JSNumber
type to support long long
type in Web API IDL
#194
Labels
enhancement
New feature or request
JSNumber
type to support long long
type in Web API IDL
#194
Rust folks have a similar issue, where
long long
shouldn't be mapped toInt64
, which is bridged toBigInt
on JS side. rustwasm/wasm-bindgen#800Checked a few other places where
long long
is used, likeAudioData
,Blob
, andFile
and all of them return a JS number in corresponding properties, notBigInt
. I'm 95% sure none of these supportBigInt
, remaining 5% certainty could be added by writing actual tests. I personally vote for either keeping theseInt32
as proposed, or creating a new union type. Just riffing:Should we add such type to JSKit then?
cc @kateinoigakukun
Originally posted by @MaxDesiatov in swiftwasm/WebAPIKit#42 (comment)
The text was updated successfully, but these errors were encountered: