mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
LibJS: Convert internal_own_property_keys() to ThrowCompletionOr
This commit is contained in:
parent
fbfb0bb908
commit
ee8380edea
Notes:
sideshowbarker
2024-07-18 03:18:58 +09:00
Author: https://github.com/linusg
Commit: ee8380edea
Pull-request: https://github.com/SerenityOS/serenity/pull/10266
Reviewed-by: https://github.com/IdanHo ✅
15 changed files with 56 additions and 92 deletions
|
@ -130,7 +130,7 @@ ThrowCompletionOr<bool> StringObject::internal_define_own_property(PropertyName
|
|||
}
|
||||
|
||||
// 10.4.3.3 [[OwnPropertyKeys]] ( ), https://tc39.es/ecma262/#sec-string-exotic-objects-ownpropertykeys
|
||||
MarkedValueList StringObject::internal_own_property_keys() const
|
||||
ThrowCompletionOr<MarkedValueList> StringObject::internal_own_property_keys() const
|
||||
{
|
||||
auto& vm = this->vm();
|
||||
|
||||
|
@ -176,7 +176,7 @@ MarkedValueList StringObject::internal_own_property_keys() const
|
|||
}
|
||||
|
||||
// 9. Return keys.
|
||||
return keys;
|
||||
return { move(keys) };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue