summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-09 00:27:19 +0100
committerLinus Groh <mail@linusgroh.de>2021-09-09 08:52:48 +0100
commit6607d1dfb1fc19901ee9eb43f67345a8a64136e3 (patch)
treed5ea21d6f073125d62291c008c3d7dba18b444b7 /Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
parent1c78ff1b9fbecf12d02f9435b6b5b963d7db808f (diff)
downloadserenity-6607d1dfb1fc19901ee9eb43f67345a8a64136e3.zip
LibJS: Implement Temporal.Instant.prototype.toZonedDateTime()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Instant.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/Instant.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
index ca370d7a86..e714d6d6d7 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
@@ -22,6 +22,7 @@ public:
virtual ~Instant() override = default;
[[nodiscard]] BigInt const& nanoseconds() const { return m_nanoseconds; }
+ [[nodiscard]] BigInt& nanoseconds() { return m_nanoseconds; }
private:
virtual void visit_edges(Visitor&) override;