Expose JS_GetPropertyInt64 in the public API
This commit is contained in:
parent
b8341ecafa
commit
c076339899
2 changed files with 5 additions and 3 deletions
|
@ -8044,7 +8044,7 @@ static int JS_TryGetPropertyInt64(JSContext *ctx, JSValue obj, int64_t idx, JSVa
|
||||||
return present;
|
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;
|
JSAtom prop;
|
||||||
JSValue val;
|
JSValue val;
|
||||||
|
|
|
@ -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_NewDate(JSContext *ctx, double epoch_ms);
|
||||||
|
|
||||||
JS_EXTERN JSValue JS_GetProperty(JSContext *ctx, JSValue this_obj, JSAtom prop);
|
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,
|
JS_EXTERN JSValue JS_GetPropertyUint32(JSContext *ctx, JSValue this_obj,
|
||||||
uint32_t idx);
|
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,
|
JS_EXTERN int JS_SetProperty(JSContext *ctx, JSValue this_obj,
|
||||||
JSAtom prop, JSValue val);
|
JSAtom prop, JSValue val);
|
||||||
|
|
Loading…
Reference in a new issue