mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
LibJS/JIT: Add builtin for Math.floor()
This commit is contained in:
parent
5e976d611e
commit
08590adf40
4 changed files with 28 additions and 7 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue