Add JS_FreePropertyEnum corresponding to JS_GetOwnPropertyNames
This commit is contained in:
parent
921c1eef50
commit
9a2a246b51
2 changed files with 8 additions and 0 deletions
|
@ -7808,6 +7808,12 @@ int JS_GetOwnProperty(JSContext *ctx, JSPropertyDescriptor *desc,
|
|||
return JS_GetOwnPropertyInternal(ctx, desc, JS_VALUE_GET_OBJ(obj), prop);
|
||||
}
|
||||
|
||||
void JS_FreePropertyEnum(JSContext *ctx, JSPropertyEnum *tab,
|
||||
uint32_t len)
|
||||
{
|
||||
js_free_prop_enum(ctx, tab, len);
|
||||
}
|
||||
|
||||
/* return -1 if exception (Proxy object only) or TRUE/FALSE */
|
||||
int JS_IsExtensible(JSContext *ctx, JSValue obj)
|
||||
{
|
||||
|
|
|
@ -707,6 +707,8 @@ JS_EXTERN int JS_GetOwnPropertyNames(JSContext *ctx, JSPropertyEnum **ptab,
|
|||
uint32_t *plen, JSValue obj, int flags);
|
||||
JS_EXTERN int JS_GetOwnProperty(JSContext *ctx, JSPropertyDescriptor *desc,
|
||||
JSValue obj, JSAtom prop);
|
||||
JS_EXTERN void JS_FreePropertyEnum(JSContext *ctx, JSPropertyEnum *tab,
|
||||
uint32_t len);
|
||||
|
||||
JS_EXTERN JSValue JS_Call(JSContext *ctx, JSValue func_obj, JSValue this_obj,
|
||||
int argc, JSValue *argv);
|
||||
|
|
Loading…
Reference in a new issue