소스 검색

LibJS: Remove #if !defined(KERNEL)

AK::JsonValue::{is,as}_double() is not available in the kernel, but that
doesn't affect LibJS.
Linus Groh 4 년 전
부모
커밋
a5d4ef462c
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  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()));
     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())