name: duk_get_finalizer proto: | void duk_get_finalizer(duk_context *ctx, duk_idx_t idx); stack: | [ ... val! ... ] -> [ ... val! ... finalizer! ] summary: |

Get the finalizer associated with a value at idx. If the value is not an object or it is an object without a finalizer, undefined is pushed to the stack instead.

example: | /* Get the finalizer of an object at index -3. */ duk_get_finalizer(ctx, -3); tags: - object - finalizer seealso: - duk_set_finalizer introduced: 1.0.0