mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:27:35 +00:00
LibJS: Add Number.prototype.toString
This commit is contained in:
parent
ec3737510d
commit
02305d01ea
6 changed files with 189 additions and 4 deletions
|
@ -42,6 +42,8 @@ public:
|
|||
virtual bool is_number_object() const override { return true; }
|
||||
virtual Value value_of() const override { return Value(m_value); }
|
||||
|
||||
double number() const { return m_value; }
|
||||
|
||||
private:
|
||||
double m_value { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue