mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
LibJS: Make BooleanPrototype inherit from Object
BooleanPrototype should inherit from Object, not BooleanObject.
This commit is contained in:
parent
551cafe4d3
commit
520c4254c9
1 changed files with 4 additions and 2 deletions
|
@ -26,10 +26,11 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibJS/Runtime/BooleanObject.h>
|
#include <LibJS/Runtime/Object.h>
|
||||||
|
|
||||||
namespace JS {
|
namespace JS {
|
||||||
class BooleanPrototype final : public BooleanObject {
|
|
||||||
|
class BooleanPrototype final : public Object {
|
||||||
public:
|
public:
|
||||||
BooleanPrototype();
|
BooleanPrototype();
|
||||||
virtual ~BooleanPrototype() override;
|
virtual ~BooleanPrototype() override;
|
||||||
|
@ -40,4 +41,5 @@ private:
|
||||||
static Value to_string(Interpreter&);
|
static Value to_string(Interpreter&);
|
||||||
static Value value_of(Interpreter&);
|
static Value value_of(Interpreter&);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue