mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02:00
Both SetFunctionName and MakeConstructor are already performed by ECMAScriptFunctionObject::initialize() when the object is created via create_from_function_node: - SetFunctionName: The name is passed to SharedFunctionInstanceData, and initialize() creates the "name" property from it. - MakeConstructor: has_constructor() returns true for all normal non-arrow functions, m_constructor_kind defaults to Base, and m_may_need_lazy_prototype_instantiation handles the prototype property creation lazily.
151 KiB
151 KiB