mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibJS: Convert internal_has_property() to ThrowCompletionOr
This commit is contained in:
parent
5da210125e
commit
d9895ec12d
10 changed files with 32 additions and 32 deletions
|
@ -231,7 +231,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::has)
|
|||
return {};
|
||||
|
||||
// 3. Return ? target.[[HasProperty]](key).
|
||||
return Value(target.as_object().internal_has_property(key));
|
||||
return Value(TRY_OR_DISCARD(target.as_object().internal_has_property(key)));
|
||||
}
|
||||
|
||||
// 28.1.9 Reflect.isExtensible ( target ), https://tc39.es/ecma262/#sec-reflect.isextensible
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue