Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -5205,7 +5205,7 @@ static int js_method_set_properties(JSContext *ctx, JSValue func_obj,
JSValue JS_NewCFunction3(JSContext *ctx, JSCFunction *func,
const char *name,
int length, JSCFunctionEnum cproto, int magic,
JSValue proto_val)
JSValueConst proto_val)
{
JSValue func_obj;
JSObject *p;
Expand Down Expand Up @@ -35891,7 +35891,7 @@ static JSValue JS_InstantiateFunctionListItem2(JSContext *ctx, JSObject *p,
return val;
}

static int JS_InstantiateFunctionListItem(JSContext *ctx, JSValue obj,
static int JS_InstantiateFunctionListItem(JSContext *ctx, JSValueConst obj,
JSAtom atom,
const JSCFunctionListEntry *e)
{
Expand Down Expand Up @@ -35984,7 +35984,7 @@ static int JS_InstantiateFunctionListItem(JSContext *ctx, JSValue obj,
return 0;
}

void JS_SetPropertyFunctionList(JSContext *ctx, JSValue obj,
void JS_SetPropertyFunctionList(JSContext *ctx, JSValueConst obj,
const JSCFunctionListEntry *tab, int len)
{
int i;
Expand Down
4 changes: 2 additions & 2 deletions quickjs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ JS_EXTERN JSValue JS_NewCFunction2(JSContext *ctx, JSCFunction *func,
JS_EXTERN JSValue JS_NewCFunction3(JSContext *ctx, JSCFunction *func,
const char *name,
int length, JSCFunctionEnum cproto, int magic,
JSValue proto_val);
JSValueConst proto_val);
JS_EXTERN JSValue JS_NewCFunctionData(JSContext *ctx, JSCFunctionData *func,
int length, int magic, int data_len,
JSValueConst *data);
Expand Down Expand Up @@ -1176,7 +1176,7 @@ typedef struct JSCFunctionListEntry {
#define JS_ALIAS_DEF(name, from) { name, JS_PROP_WRITABLE | JS_PROP_CONFIGURABLE, JS_DEF_ALIAS, 0, { .alias = { from, -1 } } }
#define JS_ALIAS_BASE_DEF(name, from, base) { name, JS_PROP_WRITABLE | JS_PROP_CONFIGURABLE, JS_DEF_ALIAS, 0, { .alias = { from, base } } }

JS_EXTERN void JS_SetPropertyFunctionList(JSContext *ctx, JSValue obj,
JS_EXTERN void JS_SetPropertyFunctionList(JSContext *ctx, JSValueConst obj,
const JSCFunctionListEntry *tab,
int len);

Expand Down