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

This commit is contained in:
Andreas Kling 2023-11-24 09:44:00 +01:00
commit 08590adf40
Notes: sideshowbarker 2024-07-16 22:22:13 +09:00
4 changed files with 28 additions and 7 deletions

View file

@ -21,6 +21,7 @@ public:
static ThrowCompletionOr<Value> log_impl(VM&, Value);
static ThrowCompletionOr<Value> sqrt_impl(VM&, Value);
static ThrowCompletionOr<Value> pow_impl(VM&, Value base, Value exponent);
static ThrowCompletionOr<Value> floor_impl(VM&, Value);
private:
explicit MathObject(Realm&);