mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:47:44 +00:00
AK+GMLCompiler+LibWeb: Remove JsonValue::is_double
This concludes a series of patches which remove the ability to observe which arithmetic type is used to store number in JsonValue.
This commit is contained in:
parent
faef802229
commit
c49819cced
5 changed files with 6 additions and 21 deletions
|
@ -235,7 +235,8 @@ static ErrorOr<String> generate_initializer_for(Optional<StringView> property_na
|
|||
HANDLE_TYPE(i64, is_integer<i64>)
|
||||
HANDLE_TYPE(u64, is_integer<u64>)
|
||||
HANDLE_TYPE(bool, is_bool)
|
||||
HANDLE_TYPE(double, is_double)
|
||||
// FIXME: Do we want to allow precision loss when C++ compiler parses these doubles?
|
||||
HANDLE_TYPE(double, is_number)
|
||||
return Error::from_string_view("Inconsistent contained type in JSON array"sv);
|
||||
#undef HANDLE_TYPE
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue