mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
LibJS: Use "T m_foo; // [[Foo]]" style for all Temporal internal slots
This commit is contained in:
parent
9758ba5678
commit
1b9b995f93
4 changed files with 4 additions and 13 deletions
|
@ -24,9 +24,7 @@ public:
|
|||
|
||||
private:
|
||||
// 12.5 Properties of Temporal.Calendar Instances, https://tc39.es/proposal-temporal/#sec-properties-of-temporal-calendar-instances
|
||||
|
||||
// [[Identifier]]
|
||||
String m_identifier;
|
||||
String m_identifier; // [[Identifier]]
|
||||
};
|
||||
|
||||
Calendar* create_temporal_calendar(GlobalObject&, String const& identifier, FunctionObject* new_target = nullptr);
|
||||
|
|
|
@ -31,7 +31,6 @@ public:
|
|||
|
||||
private:
|
||||
// 7.4 Properties of Temporal.Duration Instances, https://tc39.es/proposal-temporal/#sec-properties-of-temporal-duration-instances
|
||||
|
||||
double m_years; // [[Years]]
|
||||
double m_months; // [[Months]]
|
||||
double m_weeks; // [[Weeks]]
|
||||
|
|
|
@ -26,9 +26,7 @@ private:
|
|||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
// 8.4 Properties of Temporal.Instant Instances, https://tc39.es/proposal-temporal/#sec-properties-of-temporal-instant-instances
|
||||
|
||||
// [[Nanoseconds]]
|
||||
BigInt& m_nanoseconds;
|
||||
BigInt& m_nanoseconds; // [[Nanoseconds]]
|
||||
};
|
||||
|
||||
// -86400 * 10^17
|
||||
|
|
|
@ -28,12 +28,8 @@ public:
|
|||
|
||||
private:
|
||||
// 11.5 Properties of Temporal.TimeZone Instances, https://tc39.es/proposal-temporal/#sec-properties-of-temporal-timezone-instances
|
||||
|
||||
// [[Identifier]]
|
||||
String m_identifier;
|
||||
|
||||
// [[OffsetNanoseconds]]
|
||||
Optional<OffsetType> m_offset_nanoseconds;
|
||||
String m_identifier; // [[Identifier]]
|
||||
Optional<OffsetType> m_offset_nanoseconds; // [[OffsetNanoseconds]]
|
||||
};
|
||||
|
||||
bool is_valid_time_zone_name(String const& time_zone);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue