mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +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:
committed by
Andreas Kling
parent
5c779c124b
commit
d4e3688f4f
@@ -58,7 +58,7 @@ String Value::to_string() const
|
||||
return "NaN";
|
||||
|
||||
// FIXME: This needs improvement.
|
||||
return String::number((i32)as_double());
|
||||
return String::format("%f", as_double());
|
||||
}
|
||||
|
||||
if (is_object())
|
||||
|
||||
Reference in New Issue
Block a user