1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +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

@ -656,9 +656,9 @@ Value BinaryExpression::execute(Interpreter& interpreter, GlobalObject& global_o
case BinaryOp::Exponentiation:
return exp(global_object, lhs_result, rhs_result);
case BinaryOp::TypedEquals:
return Value(strict_eq(lhs_result, rhs_result));
return Value(is_strictly_equal(lhs_result, rhs_result));
case BinaryOp::TypedInequals:
return Value(!strict_eq(lhs_result, rhs_result));
return Value(!is_strictly_equal(lhs_result, rhs_result));
case BinaryOp::AbstractEquals:
return Value(abstract_eq(global_object, lhs_result, rhs_result));
case BinaryOp::AbstractInequals:
@ -2423,7 +2423,7 @@ Value SwitchStatement::execute(Interpreter& interpreter, GlobalObject& global_ob
auto test_result = switch_case.test()->execute(interpreter, global_object);
if (interpreter.exception())
return {};
if (!strict_eq(discriminant_result, test_result))
if (!is_strictly_equal(discriminant_result, test_result))
continue;
}
falling_through = true;