Skip to content
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

Deserialization of timeout in suite metadata fails in dart2wasm #2006

Closed
eyebrowsoffire opened this issue May 4, 2023 · 0 comments · Fixed by #2007
Closed

Deserialization of timeout in suite metadata fails in dart2wasm #2006

eyebrowsoffire opened this issue May 4, 2023 · 0 comments · Fixed by #2007
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@eyebrowsoffire
Copy link
Contributor

The following line:

return Timeout(Duration(microseconds: serialized['duration'] as int));

Fails on dart2wasm, because the underlying type is double and cannot be simply cast to an int.

@eyebrowsoffire eyebrowsoffire added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant