1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

LibJS: Pass prototype to Function constructors

This commit is contained in:
Andreas Kling 2020-04-17 19:59:32 +02:00
parent 205ac0090d
commit f6d57c82f6
21 changed files with 66 additions and 24 deletions

View file

@ -35,7 +35,7 @@
namespace JS {
FunctionConstructor::FunctionConstructor()
: NativeFunction("Function")
: NativeFunction("Function", *interpreter().function_prototype())
{
put("prototype", interpreter().function_prototype());
put("length", Value(1));