Explorar el Código

LibJS: Remove #if !defined(KERNEL)

AK::JsonValue::{is,as}_double() is not available in the kernel, but that
doesn't affect LibJS.
Linus Groh hace 4 años
padre
commit
a5d4ef462c
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      Userland/Libraries/LibJS/Runtime/JSONObject.cpp

+ 0 - 2
Userland/Libraries/LibJS/Runtime/JSONObject.cpp

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