summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-03-10 17:04:46 +0100
committerLinus Groh <mail@linusgroh.de>2022-03-10 23:20:39 +0100
commit17da627b4ccc440e7e6527dc1e70ea745a567390 (patch)
tree39e715a8eaf57303f9d56f23db0ee264e34eb86a /Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp
parent4722045e28777aacc33c5549b4839343d95ec1e7 (diff)
downloadserenity-17da627b4ccc440e7e6527dc1e70ea745a567390.zip
LibJS: Fix "set it to" language to be more explicit
This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/de58241
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp2
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 c2887af154..0ae6b23cf5 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp
@@ -57,7 +57,7 @@ ThrowCompletionOr<Instant*> create_temporal_instant(GlobalObject& global_object,
// 2. Assert: ! IsValidEpochNanoseconds(epochNanoseconds) is true.
VERIFY(is_valid_epoch_nanoseconds(epoch_nanoseconds));
- // 3. If newTarget is not present, set it to %Temporal.Instant%.
+ // 3. If newTarget is not present, set newTarget to %Temporal.Instant%.
if (!new_target)
new_target = global_object.temporal_instant_constructor();