mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
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:
parent
4788c94d34
commit
ec62783af9
6 changed files with 20 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue