mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LibJS: Pass prototype to Date constructor
This commit is contained in:
parent
2a15323029
commit
0df4d2823a
Notes:
sideshowbarker
2024-07-19 07:31:36 +09:00
Author: https://github.com/awesomekling
Commit: 0df4d2823a
3 changed files with 13 additions and 4 deletions
|
@ -31,7 +31,9 @@ namespace JS {
|
|||
|
||||
class Date final : public Object {
|
||||
public:
|
||||
Date(Core::DateTime datetime, u16 milliseconds);
|
||||
static Date* create(GlobalObject&, Core::DateTime, u16 milliseconds);
|
||||
|
||||
Date(Core::DateTime datetime, u16 milliseconds, Object& prototype);
|
||||
virtual ~Date() override;
|
||||
|
||||
Core::DateTime& datetime() { return m_datetime; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue