From 955bb8ea0d4b12f88bff1e602b1dd2b841c09bcc 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 --- quickjs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickjs.c b/quickjs.c index f000ff74e..0b3e15375 100644 --- a/quickjs.c +++ b/quickjs.c @@ -96,7 +96,7 @@ /* dump objects freed by the garbage collector */ //#define DUMP_GC_FREE /* dump objects leaking when freeing the runtime */ -//#define DUMP_LEAKS 1 +// #define DUMP_LEAKS 1 /* dump memory usage before running the garbage collector */ //#define DUMP_MEM //#define DUMP_OBJECTS /* dump objects in JS_FreeContext */ @@ -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 ),