Skip to content

Fix #89 v7: Uint64List not supported by dart2js. and v6: Uint64 accessor not supported by dart2js. #90

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

Merged
merged 4 commits into from
Apr 5, 2023

Conversation

hambergerpls
Copy link
Contributor

@hambergerpls hambergerpls commented Apr 4, 2023

Fixes #89

Flutter Web throws Uint64List not supported by dart2js. for UUIDv7 and Uint64 accessor not supported by dart2js. for UUIDv6 when trying to generate them, respectively.

This seems to be related to the following issues:

  1. Int64 and Uint64 methods and types are not supported in Dart2JS's typeddata dart-lang/sdk#10275
  2. [dart2js] why Uint64List does NOT use js' BigUint64Array, instead of throwing "Uint64List not supported on the web" dart-lang/sdk#50332

I found a workaround using Uint32List and adjusted the bits. Not sure if this is the optimal solution.

@daegalus
Copy link
Owner

daegalus commented Apr 4, 2023

Good find, but can you rebase your branch, seems a lot of my recent refactors for beta2 are being undone and polluting your actual changes.

@hambergerpls
Copy link
Contributor Author

Done 👍

@daegalus daegalus merged commit 9db94f4 into daegalus:main Apr 5, 2023
@daegalus
Copy link
Owner

daegalus commented Apr 5, 2023

Looks good, thanks. I'll get this released with the next beta, I have some other changes I need to include.

@hambergerpls hambergerpls deleted the patch-1 branch April 5, 2023 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v7: Uint64List not supported by dart2js. and v6: Uint64 accessor not supported by dart2js.
2 participants