1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:27:35 +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:
Linus Groh 2021-08-07 21:50:35 +01:00
parent aabbfa78e2
commit 53c44bea00
5 changed files with 20 additions and 20 deletions

View file

@ -20,7 +20,7 @@ public:
Calendar(String identifier, Object& prototype);
virtual ~Calendar() override = default;
String const& identifier() const { return m_identifier; }
[[nodiscard]] String const& identifier() const { return m_identifier; }
private:
// 12.5 Properties of Temporal.Calendar Instances, https://tc39.es/proposal-temporal/#sec-properties-of-temporal-calendar-instances