| commit | 1183418e47c1d28dfa3c5db6f466910cd7c1c87a | [log] [tgz] |
|---|---|---|
| author | Nate Bosch <nbosch@google.com> | Tue Sep 20 12:16:54 2022 -0700 |
| committer | GitHub <noreply@github.com> | Tue Sep 20 12:16:54 2022 -0700 |
| tree | b39e174525749f630caa25d9c3013a4fb14f5fb5 | |
| parent | e178b20663bab7ac9975773dfe360afed39c2f46 [diff] |
Handle non-int multichannel message IDs (dart-lang/stream_channel#80) When running in wasm, a number in a `List` will be parsed as a `double`. On the web the `as int` cast succeeds, but in dart2wasm it fails. Cast to `num` and use `toInt()` to more reliably get an `int` value.