mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:27:34 +00:00
LibJS: Convert remaining Date AOs using JS::Value as in/output to double
There was an awful lot of JS::Value <-> double conversion going on, even through these AOs only work with number values anyway. They don't need a global object either as they won't allocate or throw, that was simply to pass it to infallible calls of ToIntegerOrInfinity.
This commit is contained in:
parent
b9b3d01bea
commit
f7c9bd0760
10 changed files with 357 additions and 354 deletions
|
@ -63,9 +63,9 @@ double local_time(double time);
|
|||
double utc_time(double time);
|
||||
double day(double);
|
||||
double time_within_day(double);
|
||||
Value make_time(GlobalObject& global_object, Value hour, Value min, Value sec, Value ms);
|
||||
Value make_day(GlobalObject& global_object, Value year, Value month, Value date);
|
||||
Value make_date(Value day, Value time);
|
||||
Value time_clip(GlobalObject& global_object, Value time);
|
||||
double make_time(double hour, double min, double sec, double ms);
|
||||
double make_day(double year, double month, double date);
|
||||
double make_date(double day, double time);
|
||||
double time_clip(double time);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue