mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibJS: Convert internal_get() to ThrowCompletionOr
This commit is contained in:
parent
d9895ec12d
commit
6c2b974db2
Notes:
sideshowbarker
2024-07-18 03:19:10 +09:00
Author: https://github.com/linusg
Commit: 6c2b974db2
Pull-request: https://github.com/SerenityOS/serenity/pull/10266
Reviewed-by: https://github.com/IdanHo ✅
17 changed files with 39 additions and 44 deletions
|
@ -820,7 +820,7 @@ Value Value::get(GlobalObject& global_object, PropertyName const& property_name)
|
|||
return {};
|
||||
|
||||
// 3. Return ? O.[[Get]](P, V).
|
||||
return object->internal_get(property_name, *this);
|
||||
return TRY_OR_DISCARD(object->internal_get(property_name, *this));
|
||||
}
|
||||
|
||||
// 7.3.10 GetMethod ( V, P ), https://tc39.es/ecma262/#sec-getmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue