mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +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
4 changed files with 17 additions and 12 deletions
|
@ -45,7 +45,7 @@ NumberConstructor::NumberConstructor()
|
|||
put("EPSILON", Value(EPSILON));
|
||||
put("MAX_SAFE_INTEGER", Value(MAX_SAFE_INTEGER));
|
||||
put("MIN_SAFE_INTEGER", Value(MIN_SAFE_INTEGER));
|
||||
put("NEGATIVE_INFINITY", Value(-js_infinity().as_double()));
|
||||
put("NEGATIVE_INFINITY", js_negative_infinity());
|
||||
put("POSITIVE_INFINITY", js_infinity());
|
||||
put("NaN", js_nan());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue