mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Add Function() and Function.prototype
This commit is contained in:
parent
4d931b524d
commit
2944039d6b
Notes:
sideshowbarker
2024-07-19 07:56:21 +09:00
Author: https://github.com/linusg
Commit: 2944039d6b
Pull-request: https://github.com/SerenityOS/serenity/pull/1622
Reviewed-by: https://github.com/awesomekling ✅
15 changed files with 463 additions and 4 deletions
|
@ -136,6 +136,7 @@ public:
|
|||
Object* array_prototype() { return m_array_prototype; }
|
||||
Object* error_prototype() { return m_error_prototype; }
|
||||
Object* date_prototype() { return m_date_prototype; }
|
||||
Object* function_prototype() { return m_function_prototype; }
|
||||
|
||||
Exception* exception() { return m_exception; }
|
||||
void clear_exception() { m_exception = nullptr; }
|
||||
|
@ -168,6 +169,7 @@ private:
|
|||
Object* m_array_prototype { nullptr };
|
||||
Object* m_error_prototype { nullptr };
|
||||
Object* m_date_prototype { nullptr };
|
||||
Object* m_function_prototype { nullptr };
|
||||
|
||||
Exception* m_exception { nullptr };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue