name: duk_get_global_heapptr proto: | duk_bool_t duk_get_global_heapptr(duk_context *ctx, void *ptr); stack: | [ ... ] -> [ ... val! ] (if key exists) [ ... ] -> [ ... undefined! ] (if key doesn't exist) summary: |
Like duk_get_global_string()
,
but the property name is given as a Duktape heap pointer obtained e.g. using
duk_get_heapptr()
. If
ptr
is NULL, undefined
is used as the key.