summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-04-09 12:09:24 +0100
committerAndreas Kling <kling@serenityos.org>2020-04-09 13:21:24 +0200
commit520c4254c9408507a70735a592c66a8de33cb1f0 (patch)
tree0a8cca404c5e9237eb858fcc8697c3e5ccf9bed0
parent551cafe4d3dc04620fa2468d53f922398daae76d (diff)
downloadserenity-520c4254c9408507a70735a592c66a8de33cb1f0.zip
LibJS: Make BooleanPrototype inherit from Object
BooleanPrototype should inherit from Object, not BooleanObject.
-rw-r--r--Libraries/LibJS/Runtime/BooleanPrototype.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/BooleanPrototype.h b/Libraries/LibJS/Runtime/BooleanPrototype.h
index 4050767839..795a058cd3 100644
--- a/Libraries/LibJS/Runtime/BooleanPrototype.h
+++ b/Libraries/LibJS/Runtime/BooleanPrototype.h
@@ -26,10 +26,11 @@
#pragma once
-#include <LibJS/Runtime/BooleanObject.h>
+#include <LibJS/Runtime/Object.h>
namespace JS {
-class BooleanPrototype final : public BooleanObject {
+
+class BooleanPrototype final : public Object {
public:
BooleanPrototype();
virtual ~BooleanPrototype() override;
@@ -40,4 +41,5 @@ private:
static Value to_string(Interpreter&);
static Value value_of(Interpreter&);
};
+
}