LibJS: Use CallBuiltin for Math.cos()

This commit is contained in:
Aliaksandr Kalenik 2025-05-26 14:03:37 +03:00 committed by Jelle Raaijmakers
parent c02535e9f9
commit 878cc16d7a
Notes: github-actions[bot] 2025-05-26 19:53:48 +00:00
4 changed files with 13 additions and 4 deletions

View file

@ -2821,6 +2821,8 @@ static ThrowCompletionOr<Value> dispatch_builtin_call(Bytecode::Interpreter& int
return TRY(MathObject::sqrt_impl(interpreter.vm(), interpreter.get(arguments[0])));
case Builtin::MathSin:
return TRY(MathObject::sin_impl(interpreter.vm(), interpreter.get(arguments[0])));
case Builtin::MathCos:
return TRY(MathObject::cos_impl(interpreter.vm(), interpreter.get(arguments[0])));
case Bytecode::Builtin::__Count:
VERIFY_NOT_REACHED();
}