LibJS: Add builtin for Math.random()

This commit is contained in:
Andreas Kling 2025-04-03 12:01:31 +02:00 committed by Andreas Kling
commit ec590ef3e6
Notes: github-actions[bot] 2025-04-03 11:57:34 +00:00
4 changed files with 22 additions and 13 deletions

View file

@ -28,6 +28,7 @@ public:
static ThrowCompletionOr<Value> abs_impl(VM&, Value);
static ThrowCompletionOr<Value> sum_precise_impl(VM&, Value);
static ThrowCompletionOr<Value> imul_impl(VM&, Value, Value);
static Value random_impl();
private:
explicit MathObject(Realm&);