Skip to content

Commit ee3cf97

Browse files
committed
Made JS_ConcatString and JS_NumberIsNegativeOrMinusZero public
1 parent a774007 commit ee3cf97

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

quickjs.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
/* dump objects freed by the garbage collector */
9797
//#define DUMP_GC_FREE
9898
/* dump objects leaking when freeing the runtime */
99-
//#define DUMP_LEAKS 1
99+
#define DUMP_LEAKS 0
100100
/* dump memory usage before running the garbage collector */
101101
//#define DUMP_MEM
102102
//#define DUMP_OBJECTS /* dump objects in JS_FreeContext */
@@ -1291,7 +1291,6 @@ static JSValue JS_ToNumber(JSContext *ctx, JSValueConst val);
12911291
static int JS_SetPropertyValue(JSContext *ctx, JSValueConst this_obj,
12921292
JSValue prop, JSValue val, int flags);
12931293
static int JS_NumberIsInteger(JSContext *ctx, JSValueConst val);
1294-
static BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val);
12951294
static JSValue JS_ToNumberFree(JSContext *ctx, JSValue val);
12961295
static int JS_GetOwnPropertyInternal(JSContext *ctx, JSPropertyDescriptor *desc,
12971296
JSObject *p, JSAtom prop);
@@ -4612,7 +4611,7 @@ static JSValue js_rebalancee_string_rope(JSContext *ctx, JSValueConst rope)
46124611

46134612
/* op1 and op2 are converted to strings. For convenience, op1 or op2 =
46144613
JS_EXCEPTION are accepted and return JS_EXCEPTION. */
4615-
static JSValue JS_ConcatString(JSContext *ctx, JSValue op1, JSValue op2)
4614+
JSValue JS_ConcatString(JSContext *ctx, JSValue op1, JSValue op2)
46164615
{
46174616
JSString *p1, *p2;
46184617

@@ -13103,7 +13102,7 @@ static int JS_NumberIsInteger(JSContext *ctx, JSValueConst val)
1310313102
return isfinite(d) && floor(d) == d;
1310413103
}
1310513104

13106-
static BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val)
13105+
BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val)
1310713106
{
1310813107
uint32_t tag;
1310913108

@@ -55650,7 +55649,6 @@ int JS_AddIntrinsicBaseObjects(JSContext *ctx)
5565055649
return -1;
5565155650
return 0;
5565255651
}
55653-
5565455652
/* Typed Arrays */
5565555653

5565655654
static uint8_t const typed_array_size_log2[JS_TYPED_ARRAY_COUNT] = {

quickjs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,9 @@ void JS_PrintValueRT(JSRuntime *rt, JSPrintValueWrite *write_func, void *write_o
11611161
void JS_PrintValue(JSContext *ctx, JSPrintValueWrite *write_func, void *write_opaque,
11621162
JSValueConst val, const JSPrintValueOptions *options);
11631163

1164+
JSValue JS_ConcatString(JSContext *ctx, JSValue op1, JSValue op2);
1165+
JS_BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val);
1166+
11641167
#undef js_unlikely
11651168
#undef js_force_inline
11661169

0 commit comments

Comments
 (0)