mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
LibJS: Pass prototype to Function constructors
This commit is contained in:
parent
205ac0090d
commit
f6d57c82f6
21 changed files with 66 additions and 24 deletions
|
@ -34,7 +34,7 @@
|
|||
namespace JS {
|
||||
|
||||
ArrayConstructor::ArrayConstructor()
|
||||
: NativeFunction("Array")
|
||||
: NativeFunction("Array", *interpreter().function_prototype())
|
||||
{
|
||||
put("prototype", interpreter().array_prototype());
|
||||
put("length", Value(1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue