1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibJS/JIT: Add builtin for Math.pow()

This commit is contained in:
Andreas Kling 2023-11-24 09:38:28 +01:00
parent 94b634f029
commit 5e976d611e
4 changed files with 25 additions and 4 deletions

View file

@ -15,6 +15,7 @@ namespace JS::Bytecode {
#define JS_ENUMERATE_BUILTINS(O) \
O(MathAbs, math_abs, Math, abs, 1) \
O(MathLog, math_log, Math, log, 1) \
O(MathPow, math_pow, Math, pow, 2) \
O(MathSqrt, math_sqrt, Math, sqrt, 1)
enum class Builtin {