mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 03:36:36 +00:00
LibJS: Convert delete_binding() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
parent
f35e268024
commit
01370136ee
Notes:
sideshowbarker
2024-07-18 02:52:12 +09:00
Author: https://github.com/linusg
Commit: 01370136ee
Pull-request: https://github.com/SerenityOS/serenity/pull/10413
Reviewed-by: https://github.com/IdanHo ✅
8 changed files with 41 additions and 12 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
virtual ThrowCompletionOr<void> initialize_binding(GlobalObject&, FlyString const& name, Value) override;
|
||||
virtual ThrowCompletionOr<void> set_mutable_binding(GlobalObject&, FlyString const& name, Value, bool strict) override;
|
||||
virtual ThrowCompletionOr<Value> get_binding_value(GlobalObject&, FlyString const& name, bool strict) override;
|
||||
virtual bool delete_binding(GlobalObject&, FlyString const& name) override;
|
||||
virtual ThrowCompletionOr<bool> delete_binding(GlobalObject&, FlyString const& name) override;
|
||||
|
||||
// 9.1.1.2.10 WithBaseObject ( ), https://tc39.es/ecma262/#sec-object-environment-records-withbaseobject
|
||||
virtual Object* with_base_object() const override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue