LibJS: Set name of anonymous functions during assignment

This commit is contained in:
Linus Groh 2020-05-02 20:28:48 +01:00 committed by Andreas Kling
commit 25cf0da2fb
Notes: sideshowbarker 2024-07-19 07:01:46 +09:00
3 changed files with 56 additions and 6 deletions

View file

@ -45,6 +45,7 @@ public:
virtual Value construct(Interpreter&) override;
virtual const FlyString& name() const override { return m_name; };
void set_name(const FlyString& name) { m_name = name; };
private:
virtual bool is_script_function() const final { return true; }