You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
544 B

name: duk_get_finalizer
proto: |
void duk_get_finalizer(duk_context *ctx, duk_idx_t idx);
stack: |
[ ... val! ... ] -> [ ... val! ... finalizer! ]
summary: |
<p>Get the finalizer associated with a value at <code>idx</code>. If the
value is not an object or it is an object without a finalizer,
<code>undefined</code> is pushed to the stack instead.</p>
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