1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 20:05:07 +00:00

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
parent 5e66f1900b
commit 25cf0da2fb
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; }