mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibJS: Skip ordinary_call_bind_this() when possible
If during parsing it was found that function won't use `this` then there is no need to initialise `this_value` during call.
This commit is contained in:
committed by
Andreas Kling
parent
e934132442
commit
f29ac8517e
@@ -164,6 +164,7 @@ private:
|
||||
bool m_arguments_object_needed { false };
|
||||
bool m_is_module_wrapper { false };
|
||||
bool m_function_environment_needed { false };
|
||||
bool m_uses_this { false };
|
||||
Vector<VariableNameToInitialize> m_var_names_to_initialize_binding;
|
||||
Vector<DeprecatedFlyString> m_function_names_to_initialize_binding;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user