1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibJS: Correct receiver value in GetValue's [[Get]] call

This commit is contained in:
Linus Groh 2022-02-13 14:30:26 +00:00
parent 5e2d059508
commit b126a8b697

View file

@ -124,7 +124,7 @@ ThrowCompletionOr<Value> Reference::get_value(GlobalObject& global_object) const
base_obj = TRY(m_base_value.to_object(global_object));
// c. Return ? baseObj.[[Get]](V.[[ReferencedName]], GetThisValue(V)).
return base_obj->internal_get(m_name, m_base_value);
return base_obj->internal_get(m_name, get_this_value());
}
// 5. Else,