mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
LibJS: Convert bind_this_value() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
parent
0aa24f4ce5
commit
617d3cd3d3
4 changed files with 16 additions and 11 deletions
|
@ -47,7 +47,7 @@ public:
|
|||
bool has_super_binding() const;
|
||||
virtual bool has_this_binding() const override;
|
||||
virtual ThrowCompletionOr<Value> get_this_binding(GlobalObject&) const override;
|
||||
Value bind_this_value(GlobalObject&, Value);
|
||||
ThrowCompletionOr<Value> bind_this_value(GlobalObject&, Value);
|
||||
|
||||
private:
|
||||
virtual bool is_function_environment() const override { return true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue