diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-07-12 15:01:38 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-13 20:40:57 +0200 |
commit | 804d592303a06432efd479547f628f6bfb28630a (patch) | |
tree | 8ade1e2ad505f2f0d81451a69cb89658967ac694 /Userland | |
parent | e9eae9d8801c603cbd3cbd8accb6d436dd004746 (diff) | |
download | serenity-804d592303a06432efd479547f628f6bfb28630a.zip |
LibJS: Add missing has_constructor override to Generator Functions
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h b/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h index 03533a44b5..2ccd439531 100644 --- a/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h +++ b/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h @@ -21,6 +21,9 @@ public: virtual Value call() override; virtual Value construct(FunctionObject& new_target) override; + +private: + bool has_constructor() const override { return true; } }; } |