mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
LibJS: Mark getters of more Temporal objects [[nodiscard]]
PlainDate, PlainTime, and PlainDateTime already do this. All the others should as well.
This commit is contained in:
parent
aabbfa78e2
commit
53c44bea00
5 changed files with 20 additions and 20 deletions
|
@ -22,8 +22,8 @@ public:
|
|||
TimeZone(String identifier, Object& prototype);
|
||||
virtual ~TimeZone() override = default;
|
||||
|
||||
String const& identifier() const { return m_identifier; }
|
||||
Optional<OffsetType> const& offset_nanoseconds() const { return m_offset_nanoseconds; }
|
||||
[[nodiscard]] String const& identifier() const { return m_identifier; }
|
||||
[[nodiscard]] Optional<OffsetType> const& offset_nanoseconds() const { return m_offset_nanoseconds; }
|
||||
void set_offset_nanoseconds(OffsetType offset_nanoseconds) { m_offset_nanoseconds = offset_nanoseconds; };
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue