From c076339899ec3a0808df292688b0b5f3c4e49eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 25 Mar 2024 09:19:12 +0100 Subject: [PATCH] Expose JS_GetPropertyInt64 in the public API --- quickjs.c | 2 +- quickjs.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/quickjs.c b/quickjs.c index 2000b2f..7b5c189 100644 --- a/quickjs.c +++ b/quickjs.c @@ -8044,7 +8044,7 @@ static int JS_TryGetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx, JSVa return present; } -static JSValue JS_GetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx) +JSValue JS_GetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx) { JSAtom prop; JSValue val; diff --git a/quickjs.h b/quickjs.h index f27ba25..6c538a8 100644 --- a/quickjs.h +++ b/quickjs.h @@ -657,10 +657,12 @@ JS_EXTERN int JS_IsArray(JSContext *ctx, JSValue val); JS_EXTERN JSValue JS_NewDate(JSContext *ctx, double epoch_ms); JS_EXTERN JSValue JS_GetProperty(JSContext *ctx, JSValue this_obj, JSAtom prop); -JS_EXTERN JSValue JS_GetPropertyStr(JSContext *ctx, JSValue this_obj, - const char *prop); JS_EXTERN JSValue JS_GetPropertyUint32(JSContext *ctx, JSValue this_obj, uint32_t idx); +JS_EXTERN JSValue JS_GetPropertyInt64(JSContext *ctx, JSValue this_obj, + int64_t idx); +JS_EXTERN JSValue JS_GetPropertyStr(JSContext *ctx, JSValue this_obj, + const char *prop); JS_EXTERN int JS_SetProperty(JSContext *ctx, JSValue this_obj, JSAtom prop, JSValue val);