mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02: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:
Notes:
sideshowbarker
2024-07-17 07:38:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/35c9aa7c05 Pull-request: https://github.com/SerenityOS/serenity/pull/15061 Reviewed-by: https://github.com/linusg ✅
@@ -18,13 +18,14 @@ class DateTimeFormatFunction final : public NativeFunction {
|
||||
public:
|
||||
static DateTimeFormatFunction* create(Realm&, DateTimeFormat&);
|
||||
|
||||
explicit DateTimeFormatFunction(DateTimeFormat&, Object& prototype);
|
||||
virtual ~DateTimeFormatFunction() override = default;
|
||||
virtual void initialize(Realm&) override;
|
||||
|
||||
virtual ThrowCompletionOr<Value> call() override;
|
||||
|
||||
private:
|
||||
explicit DateTimeFormatFunction(DateTimeFormat&, Object& prototype);
|
||||
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
DateTimeFormat& m_date_time_format; // [[DateTimeFormat]]
|
||||
|
||||
Reference in New Issue
Block a user