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:
parent
2d7b495244
commit
cf702a13b9
5 changed files with 15 additions and 7 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue