diff options
author | Linus Groh <mail@linusgroh.de> | 2020-03-30 00:21:56 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-30 14:11:54 +0200 |
commit | d4e3688f4f5338ce5995a4c9bcce1e0bb961845f (patch) | |
tree | 63cc3d1676c4f232afa3aad4e6429393161ca910 /Libraries/LibJS/Interpreter.h | |
parent | 5c779c124b36fe314fa2a3a0a931ba033a47c5f1 (diff) | |
download | serenity-d4e3688f4f5338ce5995a4c9bcce1e0bb961845f.zip |
LibJS: Start implementing Date :^)
This adds:
- A global Date object (with `length` property and `now` function)
- The Date constructor (no arguments yet)
- The Date prototype (with `get*` functions)
Diffstat (limited to 'Libraries/LibJS/Interpreter.h')
-rw-r--r-- | Libraries/LibJS/Interpreter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibJS/Interpreter.h b/Libraries/LibJS/Interpreter.h index 70e6af0d80..2902cabdb8 100644 --- a/Libraries/LibJS/Interpreter.h +++ b/Libraries/LibJS/Interpreter.h @@ -111,6 +111,7 @@ public: Object* object_prototype() { return m_object_prototype; } Object* array_prototype() { return m_array_prototype; } Object* error_prototype() { return m_error_prototype; } + Object* date_prototype() { return m_date_prototype; } Exception* exception() { return m_exception; } void clear_exception() { m_exception = nullptr; } @@ -138,6 +139,7 @@ private: Object* m_object_prototype { nullptr }; Object* m_array_prototype { nullptr }; Object* m_error_prototype { nullptr }; + Object* m_date_prototype { nullptr }; Exception* m_exception { nullptr }; |