summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/StringConstructor.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-17 19:59:32 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-18 10:28:22 +0200
commitf6d57c82f6dbbb5c7e18bffb43d0258956aa0d46 (patch)
tree1a2a20ded1dccf299926da1f02babf3e30c386b3 /Libraries/LibJS/Runtime/StringConstructor.cpp
parent205ac0090da21c593ac7cef7db348412e4f52168 (diff)
downloadserenity-f6d57c82f6dbbb5c7e18bffb43d0258956aa0d46.zip
LibJS: Pass prototype to Function constructors
Diffstat (limited to 'Libraries/LibJS/Runtime/StringConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/StringConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/StringConstructor.cpp b/Libraries/LibJS/Runtime/StringConstructor.cpp
index b92f0491c9..53fc50e3d1 100644
--- a/Libraries/LibJS/Runtime/StringConstructor.cpp
+++ b/Libraries/LibJS/Runtime/StringConstructor.cpp
@@ -33,7 +33,7 @@
namespace JS {
StringConstructor::StringConstructor()
- : NativeFunction("String")
+ : NativeFunction("String", *interpreter().function_prototype())
{
put("prototype", interpreter().string_prototype());
put("length", Value(1));