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

This commit is contained in:
Andreas Kling 2023-11-24 09:50:11 +01:00
commit 8447544e17
Notes: sideshowbarker 2024-07-17 06:28:38 +09:00
4 changed files with 24 additions and 3 deletions

View file

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