mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibJS: Convert has_own_property() to ThrowCompletionOr
This commit is contained in:
parent
f38a5957bf
commit
3be26f56db
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/linusg
Commit: 3be26f56db
Pull-request: https://github.com/SerenityOS/serenity/pull/10327
Reviewed-by: https://github.com/IdanHo ✅
9 changed files with 23 additions and 23 deletions
|
@ -442,7 +442,7 @@ JS_DEFINE_NATIVE_FUNCTION(ObjectConstructor::has_own)
|
|||
return {};
|
||||
|
||||
// 3. Return ? HasOwnProperty(obj, key).
|
||||
return Value(object->has_own_property(key));
|
||||
return Value(TRY_OR_DISCARD(object->has_own_property(key)));
|
||||
}
|
||||
|
||||
// 20.1.2.1 Object.assign ( target, ...sources ), https://tc39.es/ecma262/#sec-object.assign
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue