swiftwasm / JavaScriptKit

Swift framework to interact with JavaScript through WebAssembly.

Home Page:https://swiftpackageindex.com/swiftwasm/JavaScriptKit/main/documentation/javascriptkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BigInt Support

j-f1 opened this issue · comments

As part of #26, I created an API that uses BigInt values in some cases. They are not currently implemented, however. An important design question is whether bey should be represented as Int64/UInt64 — sacrificing precision for code size and ease of use — or whether some sort of BigInt library should be made a dependency so we can guarantee precision at the cost of code size and performance.

js-api spec says BigInt is coerced to wasm types (i32, i64, f32, f64). So we don't need to care over 64bits case.