mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibJS: Start implementing Date :^)
This adds: - A global Date object (with `length` property and `now` function) - The Date constructor (no arguments yet) - The Date prototype (with `get*` functions)
This commit is contained in:
parent
5c779c124b
commit
d4e3688f4f
25 changed files with 567 additions and 5 deletions
|
@ -53,7 +53,7 @@ public:
|
|||
bool is_cell() const { return is_string() || is_object(); }
|
||||
bool is_array() const;
|
||||
|
||||
bool is_nan() const { return is_number() && __builtin_isnan( as_double()); }
|
||||
bool is_nan() const { return is_number() && __builtin_isnan(as_double()); }
|
||||
|
||||
Value()
|
||||
: m_type(Type::Undefined)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue