mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 14:18:15 +00:00
LibJS: Pass prototype to Function constructors
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
namespace JS {
|
||||
|
||||
StringConstructor::StringConstructor()
|
||||
: NativeFunction("String")
|
||||
: NativeFunction("String", *interpreter().function_prototype())
|
||||
{
|
||||
put("prototype", interpreter().string_prototype());
|
||||
put("length", Value(1));
|
||||
|
||||
Reference in New Issue
Block a user