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:
parent
091d352526
commit
a5d4ef462c
1 changed files with 0 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue