diff options
author | Linus Groh <mail@linusgroh.de> | 2022-05-05 08:47:36 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-05 22:40:57 +0200 |
commit | 0c65624a32e0af2961c32a54f4ea8147397c52ab (patch) | |
tree | 10000c2afc723e9c4cabe49ed346365a5897cd3e /Userland/Libraries/LibJS/Runtime/GlobalObject.h | |
parent | 2c68ec90974918a6eb3c2e9a6d3169bd3c840f47 (diff) | |
download | serenity-0c65624a32e0af2961c32a54f4ea8147397c52ab.zip |
LibJS: Add AsyncGenerator / AsyncGeneratorPrototype
Not implementing any prototype functions yet, but stubbing out async
generator infrastructure will allow us to make some progress in that
direction.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalObject.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/GlobalObject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.h b/Userland/Libraries/LibJS/Runtime/GlobalObject.h index 651c0300c8..2bcc49bf3c 100644 --- a/Userland/Libraries/LibJS/Runtime/GlobalObject.h +++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.h @@ -37,6 +37,7 @@ public: // Not included in JS_ENUMERATE_NATIVE_OBJECTS due to missing distinct constructor Object* async_from_sync_iterator_prototype() { return m_async_from_sync_iterator_prototype; } + Object* async_generator_prototype() { return m_async_generator_prototype; } Object* generator_prototype() { return m_generator_prototype; } // Not included in JS_ENUMERATE_INTL_OBJECTS due to missing distinct constructor @@ -109,6 +110,7 @@ private: // Not included in JS_ENUMERATE_NATIVE_OBJECTS due to missing distinct constructor Object* m_async_from_sync_iterator_prototype { nullptr }; + Object* m_async_generator_prototype { nullptr }; Object* m_generator_prototype { nullptr }; // Not included in JS_ENUMERATE_INTL_OBJECTS due to missing distinct constructor |