1
0
Fork 0
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:
Linus Groh 2021-09-29 18:58:03 +01:00
parent fbfb0bb908
commit ee8380edea
Notes: sideshowbarker 2024-07-18 03:18:58 +09:00
15 changed files with 56 additions and 92 deletions

View file

@ -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) };
}
}