-
-
Notifications
You must be signed in to change notification settings - Fork 52
BigInt support #56
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
Comments
I was thinking about doing this earlier today, and was trying to figure out how |
Sadly, |
See also: WebKit test case https://github.com/WebKit/webkit/blob/3a6be938ed0ede574ca96575dbe69f572269c819/JSTests/wasm/function-tests/function-import-return-value.js#L130-L184 |
Hi @kateinoigakukun, just wondering what you consider the best practice to work around this issue for Safari < 15? We are about to bump minimum Safari support to 14.1, so we can use We currently have a build step that runs |
@ephemer In our production setup, we no longer support browsers without BigInt support, so this hasn’t been a concern for us lately. If you really want to keep supporting those environments, the best way would be to integrate that transformation into JSKit's new build process. But whether it’s worth doing so depends on your target users. At least for us, we’ve opted not to support those older browsers anymore. |
Hi @kateinoigakukun, thank you for your reply. I notice that From what I can see, If we do need to re-active lowering support though, I will try to try to adapt Thanks again |
BigInt
is supported in Safari 14 on both macOS Catalina/Big Sur and iOS 14, makes perfect sense to support it on our side too, especially to allow proper handling of Int64.Need to be careful about browser compatibility though. Should JavaScriptKit just
fatalError
on older browsers when users attempt to useJSBigInt
in their code?Also a good case for a pitch for proper browser versioning in Swift, I'll open a separate toolchain issue for it.
The text was updated successfully, but these errors were encountered: