Skip to content

Commit c076339

Browse files
committed
Expose JS_GetPropertyInt64 in the public API
1 parent b8341ec commit c076339

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

quickjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8044,7 +8044,7 @@ static int JS_TryGetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx, JSVa
80448044
return present;
80458045
}
80468046

8047-
static JSValue JS_GetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx)
8047+
JSValue JS_GetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx)
80488048
{
80498049
JSAtom prop;
80508050
JSValue val;

quickjs.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,10 +657,12 @@ JS_EXTERN int JS_IsArray(JSContext *ctx, JSValue val);
657657
JS_EXTERN JSValue JS_NewDate(JSContext *ctx, double epoch_ms);
658658

659659
JS_EXTERN JSValue JS_GetProperty(JSContext *ctx, JSValue this_obj, JSAtom prop);
660-
JS_EXTERN JSValue JS_GetPropertyStr(JSContext *ctx, JSValue this_obj,
661-
const char *prop);
662660
JS_EXTERN JSValue JS_GetPropertyUint32(JSContext *ctx, JSValue this_obj,
663661
uint32_t idx);
662+
JS_EXTERN JSValue JS_GetPropertyInt64(JSContext *ctx, JSValue this_obj,
663+
int64_t idx);
664+
JS_EXTERN JSValue JS_GetPropertyStr(JSContext *ctx, JSValue this_obj,
665+
const char *prop);
664666

665667
JS_EXTERN int JS_SetProperty(JSContext *ctx, JSValue this_obj,
666668
JSAtom prop, JSValue val);

0 commit comments

Comments
 (0)