-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Int64 and Uint64 methods and types are not supported in Dart2JS's typeddata #10275
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
Issue #10254 has been merged into this issue. |
In my opinion, they should throw UnimplementedError. This can't be implemented correctly in dart2js without proper 64-bit integers, so it is really blocked on issue #1533. |
Blocking on 1533 as Lasse suggests. Note, current behavior is UnsupportedError as we cannot correctly implement it today, and it's not clear yet whether 1533 will be resolved in a way that lets us correctly implement it as is (given the current API). Marked this as being blocked by #1533. |
Added this to the Later milestone. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
what is the state of the issue |
Thanks for following up @Bluenuance! For the same reason we closed #1533, we won't be able to provide the 64-bit variants in typeddata from dart2js. I'll shortly close this issue as well, since we currently have no plans to change the current behavior. |
Hello everyone. Is there a new plan for this issue? This problem continues to affect developers. |
There is no known plan for allowing If the web version of |
ByteData.[getInt64/setInt64/getUint64/setUint64] all throw unsupported exceptions in Dart2JS (they work in the VM).
Similarly, Int64List and Uint64List fail on construction.
It's not clear how to expose this in a way that works on Dart2JS. The only 64-bit int type we have is fixnum:int64, but that does not subtype num or int. We have no unsigned 64-bit int type for dart2js.
E.g., here's a signature:
abstract int getUint64(int byteOffset, [Endianness endian = Endianness.BIG_ENDIAN])
If we implement this in Dart2JS, what should the return type be?
The text was updated successfully, but these errors were encountered: