1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

LibJS: Pass prototype to NumberObject constructor

This commit is contained in:
Andreas Kling 2020-04-17 18:55:53 +02:00
parent 2d7b495244
commit cf702a13b9
5 changed files with 15 additions and 7 deletions

View file

@ -32,7 +32,9 @@ namespace JS {
class NumberObject : public Object {
public:
explicit NumberObject(double);
static NumberObject* create(GlobalObject&, double);
NumberObject(double, Object& prototype);
virtual ~NumberObject() override;
virtual Value value_of() const override { return Value(m_value); }