mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibJS: Rename FunctionKind::{Regular => Normal}
This is what CreateDynamicFunction calls it.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 20:48:53 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/0c73fbbba51 Pull-request: https://github.com/SerenityOS/serenity/pull/11929 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/davidot ✅
@@ -75,7 +75,7 @@ public:
|
||||
bool has_simple_parameter_list() const { return m_has_simple_parameter_list; }
|
||||
|
||||
// Equivalent to absence of [[Construct]]
|
||||
virtual bool has_constructor() const override { return m_kind == FunctionKind::Regular && !m_is_arrow_function; }
|
||||
virtual bool has_constructor() const override { return m_kind == FunctionKind::Normal && !m_is_arrow_function; }
|
||||
|
||||
FunctionKind kind() const { return m_kind; }
|
||||
|
||||
@@ -113,7 +113,7 @@ private:
|
||||
FlyString m_name;
|
||||
Optional<Bytecode::Executable> m_bytecode_executable;
|
||||
i32 m_function_length { 0 };
|
||||
FunctionKind m_kind { FunctionKind::Regular };
|
||||
FunctionKind m_kind { FunctionKind::Normal };
|
||||
bool m_might_need_arguments_object { true };
|
||||
bool m_contains_direct_call_to_eval { true };
|
||||
bool m_is_arrow_function { false };
|
||||
|
||||
Reference in New Issue
Block a user