diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-09 21:10:12 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-09 23:46:45 +0100 |
commit | e4c07c5b8fc46ab3ffddbea746c407fe8087621c (patch) | |
tree | 3d5de7c326ebc26d75b216df089748e133249f9b /Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp | |
parent | cf71805aa87f937e87a1e651b64a2803bc269597 (diff) | |
download | serenity-e4c07c5b8fc46ab3ffddbea746c407fe8087621c.zip |
LibJS: Make new_target parameter of all Temporal AOs a const*
These are passed to ordinary_create_from_constructor() in each case,
which takes the parameter as a const&, so these can also be const.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp index 373c3bcbab..b1e2475e2f 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp @@ -49,7 +49,7 @@ bool is_valid_epoch_nanoseconds(BigInt const& epoch_nanoseconds) } // 8.5.2 CreateTemporalInstant ( epochNanoseconds [ , newTarget ] ), https://tc39.es/proposal-temporal/#sec-temporal-createtemporalinstant -Instant* create_temporal_instant(GlobalObject& global_object, BigInt& epoch_nanoseconds, FunctionObject* new_target) +Instant* create_temporal_instant(GlobalObject& global_object, BigInt& epoch_nanoseconds, FunctionObject const* new_target) { auto& vm = global_object.vm(); |