mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS/JIT: Add builtin for Math.round()
This commit is contained in:
parent
c2ff238467
commit
8447544e17
Notes:
sideshowbarker
2024-07-17 06:28:38 +09:00
Author: https://github.com/awesomekling
Commit: 8447544e17
Pull-request: https://github.com/SerenityOS/serenity/pull/22041
Reviewed-by: https://github.com/skyrising
4 changed files with 24 additions and 3 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue