diff --git a/quickjs.c b/quickjs.c index d4945208b1..da2be8ab89 100644 --- a/quickjs.c +++ b/quickjs.c @@ -1373,7 +1373,7 @@ 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); +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); @@ -5149,7 +5149,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; @@ -13685,7 +13685,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; @@ -60295,7 +60295,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 9dbb28ba06..9afeb17b41 100644 --- a/quickjs.h +++ b/quickjs.h @@ -1257,6 +1257,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