From 520c4254c9408507a70735a592c66a8de33cb1f0 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 9 Apr 2020 12:09:24 +0100 Subject: [PATCH] LibJS: Make BooleanPrototype inherit from Object BooleanPrototype should inherit from Object, not BooleanObject. --- Libraries/LibJS/Runtime/BooleanPrototype.h | 6 ++++-- 1 file 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 +#include 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&); }; + }