Skip to content
Open
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
5 changes: 5 additions & 0 deletions quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3837,6 +3837,11 @@ JSClassID JS_NewClassID(JSClassID *pclass_id)
return class_id;
}

const char *JS_GetVersion(void)
{
return CONFIG_VERSION;
}

JSClassID JS_GetClassID(JSValue v)
{
JSObject *p;
Expand Down
1 change: 1 addition & 0 deletions quickjs.h
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ static inline JS_BOOL JS_IsObject(JSValueConst v)
return JS_VALUE_GET_TAG(v) == JS_TAG_OBJECT;
}

const char *JS_GetVersion(void);
JSValue JS_Throw(JSContext *ctx, JSValue obj);
void JS_SetUncatchableException(JSContext *ctx, JS_BOOL flag);
JSValue JS_GetException(JSContext *ctx);
Expand Down
Loading