mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Allow functions to take arguments (#1405)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user