mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibJS/Bytecode: Add function to determine if we're in an async generator
This commit is contained in:
parent
c37ef5694b
commit
265a9b5ffc
Notes:
sideshowbarker
2024-07-16 22:58:46 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/265a9b5ffc Pull-request: https://github.com/SerenityOS/serenity/pull/19934 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ public:
|
|||
bool is_in_generator_or_async_function() const { return m_enclosing_function_kind == FunctionKind::Async || m_enclosing_function_kind == FunctionKind::Generator || m_enclosing_function_kind == FunctionKind::AsyncGenerator; }
|
||||
bool is_in_generator_function() const { return m_enclosing_function_kind == FunctionKind::Generator || m_enclosing_function_kind == FunctionKind::AsyncGenerator; }
|
||||
bool is_in_async_function() const { return m_enclosing_function_kind == FunctionKind::Async || m_enclosing_function_kind == FunctionKind::AsyncGenerator; }
|
||||
bool is_in_async_generator_function() const { return m_enclosing_function_kind == FunctionKind::AsyncGenerator; }
|
||||
|
||||
enum class BindingMode {
|
||||
Lexical,
|
||||
|
|
Loading…
Reference in a new issue