1
Fork 0
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:
Matthew Olsson 2020-07-14 15:26:15 -07:00 committed by Andreas Kling
parent ec3737510d
commit 02305d01ea
6 changed files with 189 additions and 4 deletions

View file

@ -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 };
};