mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibJS: Make Function and CallFrame aware of their function name
This commit is contained in:
committed by
Andreas Kling
parent
4eceea7c62
commit
eece424694
Notes:
sideshowbarker
2024-07-19 07:43:21 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/eece4246949 Pull-request: https://github.com/SerenityOS/serenity/pull/1742
@@ -33,8 +33,9 @@
|
||||
|
||||
namespace JS {
|
||||
|
||||
ScriptFunction::ScriptFunction(const Statement& body, Vector<FlyString> parameters)
|
||||
: m_body(body)
|
||||
ScriptFunction::ScriptFunction(const FlyString& name, const Statement& body, Vector<FlyString> parameters)
|
||||
: m_name(name)
|
||||
, m_body(body)
|
||||
, m_parameters(move(parameters))
|
||||
{
|
||||
put("prototype", heap().allocate<Object>());
|
||||
|
||||
Reference in New Issue
Block a user