mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibJS: Set name of anonymous functions during assignment
This commit is contained in:
parent
5e66f1900b
commit
25cf0da2fb
Notes:
sideshowbarker
2024-07-19 07:01:46 +09:00
Author: https://github.com/linusg
Commit: 25cf0da2fb
Pull-request: https://github.com/SerenityOS/serenity/pull/2070
3 changed files with 56 additions and 6 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue