LibJS: Let Object::delete_property() return a bool, not Value

Just like the various define_property functions, this should return a
bool directly and let the caller deal with wrapping it in a Value, if
necessary.
This commit is contained in:
Linus Groh 2021-04-10 17:44:12 +02:00 committed by Andreas Kling
commit ec62783af9
Notes: sideshowbarker 2024-07-18 20:35:12 +09:00
6 changed files with 20 additions and 20 deletions

View file

@ -176,7 +176,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::delete_property)
if (property_key_as_double >= 0 && (i32)property_key_as_double == property_key_as_double)
property_name = PropertyName(property_key_as_double);
}
return target->delete_property(property_name);
return Value(target->delete_property(property_name));
}
JS_DEFINE_NATIVE_FUNCTION(ReflectObject::get)