Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion protobuf/lib/src/protobuf/json/json_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ Object? _convertRawJsValue(
// Allow quoted values, although we don't emit them.
if (value.isA<JSNumber>()) {
final jsNum = value._as<JSNumber>();
return _Number._isInteger(jsNum) ? jsNum.toDartInt : jsNum.toDartDouble;
return jsNum.toDartDouble;
} else if (value.isA<JSString>()) {
return double.parse(value._as<JSString>().toDart);
}
Expand Down
Loading