mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:18:12 +00:00
LibJS/JIT: Add builtin for Math.sqrt()
This commit is contained in:
parent
1d8a601f96
commit
94b634f029
4 changed files with 26 additions and 5 deletions
|
@ -14,7 +14,8 @@ namespace JS::Bytecode {
|
|||
// TitleCaseName, snake_case_name, base, property, argument_count
|
||||
#define JS_ENUMERATE_BUILTINS(O) \
|
||||
O(MathAbs, math_abs, Math, abs, 1) \
|
||||
O(MathLog, math_log, Math, log, 1)
|
||||
O(MathLog, math_log, Math, log, 1) \
|
||||
O(MathSqrt, math_sqrt, Math, sqrt, 1)
|
||||
|
||||
enum class Builtin {
|
||||
#define DEFINE_BUILTIN_ENUM(name, ...) name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue