LibJS: Pass prototype to Function constructors

This commit is contained in:
Andreas Kling 2020-04-17 19:59:32 +02:00
commit f6d57c82f6
Notes: sideshowbarker 2024-07-19 07:31:31 +09:00
21 changed files with 66 additions and 24 deletions

View file

@ -33,7 +33,7 @@
namespace JS {
StringConstructor::StringConstructor()
: NativeFunction("String")
: NativeFunction("String", *interpreter().function_prototype())
{
put("prototype", interpreter().string_prototype());
put("length", Value(1));