mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
LibJS/JIT: Add a builtin for Math.abs
This commit is contained in:
parent
86b85aa68b
commit
6c8ab1ca0d
4 changed files with 58 additions and 3 deletions
|
@ -12,7 +12,8 @@
|
|||
namespace JS::Bytecode {
|
||||
|
||||
// TitleCaseName, snake_case_name, base, property, argument_count
|
||||
#define JS_ENUMERATE_BUILTINS(O)
|
||||
#define JS_ENUMERATE_BUILTINS(O) \
|
||||
O(MathAbs, math_abs, Math, abs, 1)
|
||||
|
||||
enum class Builtin {
|
||||
#define DEFINE_BUILTIN_ENUM(name, ...) name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue