mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
LibJS: Convert get_super_base() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
parent
a456eae4b1
commit
4f03138971
3 changed files with 14 additions and 5 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/DeclarativeEnvironment.h>
|
||||
#include <LibJS/Runtime/ECMAScriptFunctionObject.h>
|
||||
|
||||
|
@ -42,7 +43,7 @@ public:
|
|||
void set_new_target(Value new_target) { m_new_target = new_target; }
|
||||
|
||||
// Abstract operations
|
||||
Value get_super_base() const;
|
||||
ThrowCompletionOr<Value> get_super_base() const;
|
||||
bool has_super_binding() const;
|
||||
virtual bool has_this_binding() const override;
|
||||
virtual Value get_this_binding(GlobalObject&) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue