diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-17 19:59:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-18 10:28:22 +0200 |
commit | f6d57c82f6dbbb5c7e18bffb43d0258956aa0d46 (patch) | |
tree | 1a2a20ded1dccf299926da1f02babf3e30c386b3 /Libraries/LibJS/Runtime/StringConstructor.cpp | |
parent | 205ac0090da21c593ac7cef7db348412e4f52168 (diff) | |
download | serenity-f6d57c82f6dbbb5c7e18bffb43d0258956aa0d46.zip |
LibJS: Pass prototype to Function constructors
Diffstat (limited to 'Libraries/LibJS/Runtime/StringConstructor.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/StringConstructor.cpp | 2 |
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)); |