void pdf_jsimp_drop_type(pdf_jsimp *imp, pdf_jsimp_type *type) { if (imp && type) { js_State *J = imp->J; js_delregistry(J, (const char *)type); } }
void js_unref(js_State *J, const char *ref) { js_delregistry(J, ref); }