mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +00:00
LibJS: Correct receiver value in GetValue's [[Get]] call
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user