mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
LibJS: Add js_negative_infinity()
Value(-js_infinity().as_double()) is kind of awkward.
This commit is contained in:
parent
f226746394
commit
97de93eed1
Notes:
sideshowbarker
2024-07-19 07:41:07 +09:00
Author: https://github.com/linusg
Commit: 97de93eed1
Pull-request: https://github.com/SerenityOS/serenity/pull/1757
4 changed files with 17 additions and 12 deletions
|
@ -182,6 +182,11 @@ inline Value js_infinity()
|
|||
return Value(__builtin_huge_val());
|
||||
}
|
||||
|
||||
inline Value js_negative_infinity()
|
||||
{
|
||||
return Value(-__builtin_huge_val());
|
||||
}
|
||||
|
||||
Value greater_than(Value lhs, Value rhs);
|
||||
Value greater_than_equals(Value lhs, Value rhs);
|
||||
Value less_than(Value lhs, Value rhs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue