LibJS: Allow functions to take arguments (#1405)

This commit is contained in:
howar6hill 2020-03-12 19:22:13 +08:00 committed by GitHub
parent 425fd3ce51
commit 01133733dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 17:36:42 +09:00
7 changed files with 46 additions and 14 deletions

View file

@ -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))
{
}