-
Notifications
You must be signed in to change notification settings - Fork 1
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
not support web #3
Comments
It seems that the web platform should use BigInt to calculate. |
Yes, IIRC the compilation from Dart to JS doesn't handle 64 bit integers because the web target is only 32 bits or something like that. Unfortunately the primary goal of this library was to be a dependency for a console project. If you want to contribute you're welcome to make a PR that enable the handling of both console and web targets. |
Glad to see that the web compatible version is coming up! I've written a Web-compatible Dart function to generate a 64-bit FNV-1a hash for my own uses. If anyone needs a quick, copy-and-paste solution for a web-compatible function, feel free to check out: https://gist.github.com/wjkoh/39d9a108f3e73bc728172492670bb97a |
I tried to compile the web platform, but got the following error.
The text was updated successfully, but these errors were encountered: