mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
LibJS: Allow functions to take arguments (#1405)
This commit is contained in:
parent
425fd3ce51
commit
01133733dd
Notes:
sideshowbarker
2024-07-19 17:36:42 +09:00
Author: https://github.com/f-eiwu
Commit: 01133733dd
Pull-request: https://github.com/SerenityOS/serenity/pull/1405
Reviewed-by: https://github.com/awesomekling ✅
7 changed files with 46 additions and 14 deletions
|
@ -29,9 +29,10 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
Function::Function(String name, const ScopeNode& body)
|
||||
Function::Function(String name, const ScopeNode& body, Vector<String> parameters)
|
||||
: m_name(move(name))
|
||||
, m_body(body)
|
||||
, m_parameters(move(parameters))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue