1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

LibJS/JIT: Add builtin for Math.sqrt()

This commit is contained in:
Andreas Kling 2023-11-24 09:35:37 +01:00
parent 1d8a601f96
commit 94b634f029
4 changed files with 26 additions and 5 deletions

View file

@ -19,6 +19,7 @@ public:
virtual ~MathObject() override = default;
static ThrowCompletionOr<Value> log_impl(VM&, Value);
static ThrowCompletionOr<Value> sqrt_impl(VM&, Value);
private:
explicit MathObject(Realm&);