diff --git a/quickjs.c b/quickjs.c index 2fcd29ad1..d2ef57c38 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 0 /* dump memory usage before running the garbage collector */ //#define DUMP_MEM //#define DUMP_OBJECTS /* dump objects in JS_FreeContext */ @@ -1291,7 +1291,6 @@ static JSValue JS_ToNumber(JSContext *ctx, JSValueConst val); static int JS_SetPropertyValue(JSContext *ctx, JSValueConst this_obj, JSValue prop, JSValue val, int flags); static int JS_NumberIsInteger(JSContext *ctx, JSValueConst val); -static BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val); static JSValue JS_ToNumberFree(JSContext *ctx, JSValue val); static int JS_GetOwnPropertyInternal(JSContext *ctx, JSPropertyDescriptor *desc, JSObject *p, JSAtom prop); @@ -4612,7 +4611,7 @@ static JSValue js_rebalancee_string_rope(JSContext *ctx, JSValueConst rope) /* op1 and op2 are converted to strings. For convenience, op1 or op2 = JS_EXCEPTION are accepted and return JS_EXCEPTION. */ -static JSValue JS_ConcatString(JSContext *ctx, JSValue op1, JSValue op2) +JSValue JS_ConcatString(JSContext *ctx, JSValue op1, JSValue op2) { JSString *p1, *p2; @@ -13103,7 +13102,7 @@ static int JS_NumberIsInteger(JSContext *ctx, JSValueConst val) return isfinite(d) && floor(d) == d; } -static BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val) +BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val) { uint32_t tag; @@ -55650,7 +55649,6 @@ int JS_AddIntrinsicBaseObjects(JSContext *ctx) return -1; return 0; } - /* Typed Arrays */ static uint8_t const typed_array_size_log2[JS_TYPED_ARRAY_COUNT] = { diff --git a/quickjs.h b/quickjs.h index 92cc000d0..dee1dd181 100644 --- a/quickjs.h +++ b/quickjs.h @@ -1161,6 +1161,9 @@ void JS_PrintValueRT(JSRuntime *rt, JSPrintValueWrite *write_func, void *write_o void JS_PrintValue(JSContext *ctx, JSPrintValueWrite *write_func, void *write_opaque, JSValueConst val, const JSPrintValueOptions *options); +JSValue JS_ConcatString(JSContext *ctx, JSValue op1, JSValue op2); +JS_BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val); + #undef js_unlikely #undef js_force_inline