mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Fix casting a value to ScriptFunction without checking it's one
This commit is contained in:
parent
1274c244d5
commit
53a94b8bbd
Notes:
sideshowbarker
2024-07-19 05:55:04 +09:00
Author: https://github.com/bugaevc
Commit: 53a94b8bbd
Pull-request: https://github.com/SerenityOS/serenity/pull/2471
3 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue