1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:47:35 +00:00

LibJS: Make to_temporal_duration_record() time like Object a const&

This only calls Object::get() or some Duration getters on the
temporal_duration_like Object, both of which are const-qualified.
This commit is contained in:
Linus Groh 2021-09-09 21:51:26 +01:00
parent 1d24699ca8
commit 77a18392ff
2 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ auto temporal_duration_like_properties = [](VM& vm) {
};
Duration* to_temporal_duration(GlobalObject&, Value item);
TemporalDuration to_temporal_duration_record(GlobalObject&, Object& temporal_duration_like);
TemporalDuration to_temporal_duration_record(GlobalObject&, Object const& temporal_duration_like);
i8 duration_sign(double years, double months, double weeks, double days, double hours, double minutes, double seconds, double milliseconds, double microseconds, double nanoseconds);
bool is_valid_duration(double years, double months, double weeks, double days, double hours, double minutes, double seconds, double milliseconds, double microseconds, double nanoseconds);
PartialDuration to_partial_duration(GlobalObject&, Value temporal_duration_like);