summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-05-02 20:28:48 +0100
committerAndreas Kling <kling@serenityos.org>2020-05-03 11:41:56 +0200
commit25cf0da2fb44d040f76dcb7ac8feddc20492ce26 (patch)
tree9099980d4f56b27f962eeb5c9dfd82eef4901062 /Libraries/LibJS/Runtime
parent5e66f1900b1576f8645bb52d3ac6468ea69e7e25 (diff)
downloadserenity-25cf0da2fb44d040f76dcb7ac8feddc20492ce26.zip
LibJS: Set name of anonymous functions during assignment
Diffstat (limited to 'Libraries/LibJS/Runtime')
-rw-r--r--Libraries/LibJS/Runtime/ScriptFunction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/ScriptFunction.h b/Libraries/LibJS/Runtime/ScriptFunction.h
index 24338972d5..407ad3a845 100644
--- a/Libraries/LibJS/Runtime/ScriptFunction.h
+++ b/Libraries/LibJS/Runtime/ScriptFunction.h
@@ -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; }