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
commit 4566472ed6
Notes: sideshowbarker 2024-07-18 03:27:57 +09:00
6 changed files with 19 additions and 28 deletions

View file

@ -150,7 +150,7 @@ ThrowCompletionOr<Realm*> get_function_realm(GlobalObject& global_object, Functi
auto& bound_function = static_cast<BoundFunction const&>(function);
// a. Let target be obj.[[BoundTargetFunction]].
auto& target = bound_function.target_function();
auto& target = bound_function.bound_target_function();
// b. Return ? GetFunctionRealm(target).
return get_function_realm(global_object, target);