mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibJS: Add builtin for Math.random()
This commit is contained in:
parent
714e8aec8a
commit
ec590ef3e6
Notes:
github-actions[bot]
2025-04-03 11:57:34 +00:00
Author: https://github.com/awesomekling
Commit: ec590ef3e6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4204
4 changed files with 22 additions and 13 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue