mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 00:54:57 +00:00
LibJS: Add Function() and Function.prototype
This commit is contained in:
parent
4d931b524d
commit
2944039d6b
15 changed files with 463 additions and 4 deletions
|
@ -37,6 +37,7 @@ ScriptFunction::ScriptFunction(const ScopeNode& body, Vector<FlyString> paramete
|
|||
: m_body(body)
|
||||
, m_parameters(move(parameters))
|
||||
{
|
||||
put("prototype", heap().allocate<Object>());
|
||||
put_native_property("length", length_getter, length_setter);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue