1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:38:10 +00:00

LibJS: Fix casting a value to ScriptFunction without checking it's one

This commit is contained in:
Sergey Bugaev 2020-06-01 16:58:54 +03:00 committed by Andreas Kling
parent 1274c244d5
commit 53a94b8bbd
3 changed files with 6 additions and 4 deletions

View file

@ -48,7 +48,7 @@ public:
void set_name(const FlyString& name) { m_name = name; };
private:
virtual bool is_script_function() const final { return true; }
virtual bool is_script_function() const override { return true; }
virtual const char* class_name() const override { return "ScriptFunction"; }
virtual LexicalEnvironment* create_environment() override;
virtual void visit_children(Visitor&) override;