summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/StringObject.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-10 13:04:12 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-10 13:09:35 +0200
commit070a8f26892c3822f934e0028996d532924cad4b (patch)
tree45f0d5a353a2072bc38c3eba7bd3ad9c98cb4cea /Libraries/LibJS/Runtime/StringObject.h
parentc06d5ef114a385944289d8c6a849bf34e544fe55 (diff)
downloadserenity-070a8f26892c3822f934e0028996d532924cad4b.zip
LibJS: Boolean, Number and String prototypes should have values too
It appears that calling .valueOf() on an objectified primitive's prototype should return a value after all. This matches what other engines are doing.
Diffstat (limited to 'Libraries/LibJS/Runtime/StringObject.h')
-rw-r--r--Libraries/LibJS/Runtime/StringObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/StringObject.h b/Libraries/LibJS/Runtime/StringObject.h
index 76f05bbcce..2f914e4246 100644
--- a/Libraries/LibJS/Runtime/StringObject.h
+++ b/Libraries/LibJS/Runtime/StringObject.h
@@ -30,7 +30,7 @@
namespace JS {
-class StringObject final : public Object {
+class StringObject : public Object {
public:
explicit StringObject(PrimitiveString*);
virtual ~StringObject() override;