diff options
author | Linus Groh <mail@linusgroh.de> | 2022-02-09 19:35:36 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-09 23:31:34 +0000 |
commit | 87b9fa2636456c45d11d10583a3618e67de3408c (patch) | |
tree | 61db17fe28c5256b7c0793b058b6d2cb2cc9674d /Userland/Libraries/LibJS/Runtime/FunctionObject.h | |
parent | 368af9ad6e9f545b88c4662a16b104a4c5a07539 (diff) | |
download | serenity-87b9fa2636456c45d11d10583a3618e67de3408c.zip |
LibJS: Add FunctionObject constructor allowing null prototype
This just calls through to the Object constructor added in the previous
commit.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/FunctionObject.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/FunctionObject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/FunctionObject.h b/Userland/Libraries/LibJS/Runtime/FunctionObject.h index 7bc7a0ac80..0691ac36f6 100644 --- a/Userland/Libraries/LibJS/Runtime/FunctionObject.h +++ b/Userland/Libraries/LibJS/Runtime/FunctionObject.h @@ -31,7 +31,6 @@ public: void set_function_name(Variant<PropertyKey, PrivateName> const& name_arg, Optional<StringView> const& prefix = {}); void set_function_length(double length); - ThrowCompletionOr<BoundFunction*> bind(Value bound_this_value, Vector<Value> arguments); virtual bool is_strict_mode() const { return false; } @@ -41,6 +40,7 @@ public: virtual Realm* realm() const { return nullptr; } protected: + explicit FunctionObject(GlobalObject&, Object* prototype); explicit FunctionObject(Object& prototype); private: |