mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibJS: Convert create_data_property() to ThrowCompletionOr
This commit is contained in:
parent
1d45541278
commit
fb443b3fb4
Notes:
sideshowbarker
2024-07-18 03:07:33 +09:00
Author: https://github.com/linusg
Commit: fb443b3fb4
Pull-request: https://github.com/SerenityOS/serenity/pull/10327
Reviewed-by: https://github.com/IdanHo ✅
5 changed files with 14 additions and 27 deletions
|
@ -77,7 +77,7 @@ public:
|
|||
|
||||
ThrowCompletionOr<Value> get(PropertyName const&) const;
|
||||
ThrowCompletionOr<bool> set(PropertyName const&, Value, ShouldThrowExceptions);
|
||||
bool create_data_property(PropertyName const&, Value);
|
||||
ThrowCompletionOr<bool> create_data_property(PropertyName const&, Value);
|
||||
bool create_method_property(PropertyName const&, Value);
|
||||
bool create_data_property_or_throw(PropertyName const&, Value);
|
||||
bool create_non_enumerable_data_property_or_throw(PropertyName const&, Value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue