From 327ad0d3264d56f7717d6c30b5be811c55dc2efe Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Thu, 16 May 2024 17:12:48 -0700 Subject: [PATCH] Fix `js_bigfloat_parseFloat()` Fixes #283, #266 --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index f000ff7..8cffeb0 100644 --- a/quickjs.c +++ b/quickjs.c @@ -51929,7 +51929,7 @@ static const JSCFunctionListEntry js_bigfloat_funcs[] = { JS_CGETSET_MAGIC_DEF("MIN_VALUE", js_bigfloat_get_const, NULL, 2 ), JS_CGETSET_MAGIC_DEF("MAX_VALUE", js_bigfloat_get_const, NULL, 3 ), JS_CGETSET_MAGIC_DEF("EPSILON", js_bigfloat_get_const, NULL, 4 ), - JS_CFUNC_DEF("parseFloat", 1, js_bigfloat_parseFloat ), + JS_CFUNC_DEF("parseFloat", 2, js_bigfloat_parseFloat ), JS_CFUNC_DEF("isFinite", 1, js_bigfloat_isFinite ), JS_CFUNC_DEF("isNaN", 1, js_bigfloat_isNaN ), JS_CFUNC_MAGIC_DEF("abs", 1, js_bigfloat_fop, MATH_OP_ABS ),