Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
fix: issue with js_function_toString
  • Loading branch information
nmerget committed Sep 20, 2024
commit 0a1064f8516de367c6ea23d61f0f671653655c57
3 changes: 2 additions & 1 deletion thirdparty/quickjs/quickjs/quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -37459,7 +37459,8 @@ static JSValue js_function_bind(JSContext *ctx, JSValueConst this_val,
return JS_EXCEPTION;
}

JSValue js_function_toString(JSContext *ctx, JSValueConst this_val)
JSValue js_function_toString(JSContext *ctx, JSValueConst this_val,
int argc, JSValueConst *argv)
{
JSObject *p;
JSFunctionKindEnum func_kind = JS_FUNC_NORMAL;
Expand Down
5 changes: 3 additions & 2 deletions thirdparty/quickjs/quickjs/quickjs.h
Original file line number Diff line number Diff line change
Expand Up @@ -742,10 +742,11 @@ JS_BOOL JS_SetConstructorBit(JSContext *ctx, JSValueConst func_obj, JS_BOOL val)
JSValue JS_NewArray(JSContext *ctx);
int JS_IsArray(JSContext *ctx, JSValueConst val);

JSValue js_function_toString(JSContext *ctx, JSValueConst this_val);
JSValue js_function_toString(JSContext *ctx, JSValueConst this_val,
int argc, JSValueConst *argv);
static js_force_inline JSValue JS_FunctionToString(JSContext *ctx, JSValueConst this_val)
{
return js_function_toString(ctx, this_val);
return js_function_toString(ctx, this_val, 0, NULL);
}

JSValue JS_GetPropertyInternal(JSContext *ctx, JSValueConst obj,
Expand Down