I think it’s easy to do as the implementation of js_free_prop_enum is simple
static void js_free_prop_enum(JSContext *ctx, JSPropertyEnum *tab, uint32_t len)
{
uint32_t i;
if (tab) {
for(i = 0; i < len; i++)
JS_FreeAtom(ctx, tab[i].atom);
js_free(ctx, tab);
}
}
i think it’s just all about the loop, you can implement something like it in
your code i think.
Coldzer0
F204 44EF CC37 DC2E C1C3 26F6 694B 1BB4 981D FF9C
On Aug 22, 2019, at 7:33 AM, Saúl Ibarra Corretgé <s@xxxxxxxxxx> wrote:
js_free_prop_enum