1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibJS: Rename strict_eq() to is_strictly_equal()

This got turned into a proper AO with a new name recently.

See: 19d7ca4
This commit is contained in:
Linus Groh 2021-09-23 23:43:28 +02:00
parent bc5a04f798
commit c7ff89891c
6 changed files with 12 additions and 12 deletions

View file

@ -1405,7 +1405,7 @@ bool same_value_non_numeric(Value lhs, Value rhs)
}
// 7.2.15 IsStrictlyEqual ( x, y ), https://tc39.es/ecma262/#sec-isstrictlyequal
bool strict_eq(Value lhs, Value rhs)
bool is_strictly_equal(Value lhs, Value rhs)
{
if (!same_type_for_equality(lhs, rhs))
return false;
@ -1430,7 +1430,7 @@ bool abstract_eq(GlobalObject& global_object, Value lhs, Value rhs)
auto& vm = global_object.vm();
if (same_type_for_equality(lhs, rhs))
return strict_eq(lhs, rhs);
return is_strictly_equal(lhs, rhs);
if (lhs.is_nullish() && rhs.is_nullish())
return true;