1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +00:00

LibJS: Rename BoundFunction::m_target_function to match spec name

This commit is contained in:
Linus Groh 2021-09-25 00:16:39 +02:00
parent a08292d76c
commit 4566472ed6
6 changed files with 19 additions and 28 deletions

View file

@ -30,7 +30,7 @@ FunctionObject::~FunctionObject()
BoundFunction* FunctionObject::bind(Value bound_this_value, Vector<Value> arguments)
{
auto& vm = this->vm();
FunctionObject& target_function = is<BoundFunction>(*this) ? static_cast<BoundFunction&>(*this).target_function() : *this;
FunctionObject& target_function = is<BoundFunction>(*this) ? static_cast<BoundFunction&>(*this).bound_target_function() : *this;
auto bound_this_object = [&vm, bound_this_value, this]() -> Value {
if (!m_bound_this.is_empty())