diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-09 21:51:26 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-09 23:46:45 +0100 |
commit | 77a18392ff6501ec31877e7a84cdbdc5da5df0f6 (patch) | |
tree | 94ae2e737089b1473a247b72ff5a40ee4bde9097 /Userland/Libraries/LibJS/Runtime/Temporal/Duration.h | |
parent | 1d24699ca8b8fbe228938b4ba7fbdf18a484659d (diff) | |
download | serenity-77a18392ff6501ec31877e7a84cdbdc5da5df0f6.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Duration.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/Duration.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Duration.h b/Userland/Libraries/LibJS/Runtime/Temporal/Duration.h index e6e53324df..d7101569ec 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Duration.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Duration.h @@ -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); |