mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibJS: Check dates are below the time_clip
threshold
This commit is contained in:
parent
c4530e95f4
commit
f65cb63aab
3 changed files with 60 additions and 12 deletions
|
@ -15,6 +15,8 @@ class Date final : public Object {
|
|||
JS_OBJECT(Date, Object);
|
||||
|
||||
public:
|
||||
static constexpr double time_clip = 8.64e15;
|
||||
|
||||
static Date* create(GlobalObject&, Core::DateTime, i16 milliseconds, bool is_invalid = false);
|
||||
static Date* now(GlobalObject&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue