The following line: https://github.com/dart-lang/test/blob/9484592acc10f52efccdce03df73229fa2b10509/pkgs/test_api/lib/src/backend/metadata.dart#L285 Fails on dart2wasm, because the underlying type is double and cannot be simply cast to an int.