LibJS: Implement Math.sumPrecise

This commit is contained in:
aplefull
2025-03-02 20:04:38 +01:00
committed by Andreas Kling
parent c769271e82
commit 80b2c11c81
Notes: github-actions[bot] 2025-03-03 20:47:18 +00:00
5 changed files with 341 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ public:
static ThrowCompletionOr<Value> round_impl(VM&, Value);
static ThrowCompletionOr<Value> exp_impl(VM&, Value);
static ThrowCompletionOr<Value> abs_impl(VM&, Value);
static ThrowCompletionOr<Value> sum_precise_impl(VM&, Value);
private:
explicit MathObject(Realm&);
@@ -66,6 +67,7 @@ private:
JS_DECLARE_NATIVE_FUNCTION(sinh);
JS_DECLARE_NATIVE_FUNCTION(cosh);
JS_DECLARE_NATIVE_FUNCTION(tanh);
JS_DECLARE_NATIVE_FUNCTION(sumPrecise);
};
}