summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/ObjectConstructor.cpp
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@gmx.de>2020-04-13 01:07:31 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-13 01:14:21 +0200
commitbbd592cb6c449dd0b96b8e6a8103126d698f8262 (patch)
tree06a043c30206c7e8981aa6b6a392a49c100d9f6a /Libraries/LibJS/Runtime/ObjectConstructor.cpp
parent0d41e542b70bdcd2eea6eac7dc2748bb5b1f2f79 (diff)
downloadserenity-bbd592cb6c449dd0b96b8e6a8103126d698f8262.zip
LibJS: Tweak FunctionPrototype::to_string and constructors
The output of FunctionPrototype::to_string is now more in line with the output in Firefox. The builtin constructors have been extended to include their function name in the output.
Diffstat (limited to 'Libraries/LibJS/Runtime/ObjectConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/ObjectConstructor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/ObjectConstructor.cpp b/Libraries/LibJS/Runtime/ObjectConstructor.cpp
index ad00184707..21bd5c18b3 100644
--- a/Libraries/LibJS/Runtime/ObjectConstructor.cpp
+++ b/Libraries/LibJS/Runtime/ObjectConstructor.cpp
@@ -35,6 +35,7 @@
namespace JS {
ObjectConstructor::ObjectConstructor()
+ : NativeFunction("Object")
{
put("prototype", interpreter().object_prototype());