1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

LibJS: Hide all the constructors!

Now that the GC allocator is able to invoke Cell subclass constructors
directly via friendship, we no longer need to keep them public. :^)
This commit is contained in:
Andreas Kling 2022-08-28 23:51:28 +02:00
parent d54ba587f3
commit 35c9aa7c05
196 changed files with 456 additions and 242 deletions

View file

@ -56,7 +56,6 @@ public:
StripIfInteger,
};
NumberFormatBase(Object& prototype);
virtual ~NumberFormatBase() override = default;
String const& locale() const { return m_locale; }
@ -99,6 +98,9 @@ public:
StringView trailing_zero_display_string() const;
void set_trailing_zero_display(StringView trailing_zero_display);
protected:
explicit NumberFormatBase(Object& prototype);
private:
String m_locale; // [[Locale]]
String m_data_locale; // [[DataLocale]]
@ -174,7 +176,6 @@ public:
return AK::Array { "nu"sv };
}
NumberFormat(Object& prototype);
virtual ~NumberFormat() override = default;
String const& numbering_system() const { return m_numbering_system; }
@ -233,6 +234,8 @@ public:
Unicode::NumberFormat compact_format() const { return *m_compact_format; }
private:
explicit NumberFormat(Object& prototype);
virtual void visit_edges(Visitor&) override;
String m_locale; // [[Locale]]