1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

LibJS: Remove #if !defined(KERNEL)

AK::JsonValue::{is,as}_double() is not available in the kernel, but that
doesn't affect LibJS.
This commit is contained in:
Linus Groh 2021-04-16 18:30:39 +02:00 committed by Andreas Kling
parent 091d352526
commit a5d4ef462c

View file

@ -423,10 +423,8 @@ Value JSONObject::parse_json_value(GlobalObject& global_object, const JsonValue&
return Value(parse_json_array(global_object, value.as_array()));
if (value.is_null())
return js_null();
#if !defined(KERNEL)
if (value.is_double())
return Value(value.as_double());
#endif
if (value.is_number())
return Value(value.to_i32(0));
if (value.is_string())