/* Create a global array refs in the heap stash.  */
void be_ref_setup(duk_context *ctx)
/* Create a global array refs in the heap stash.  */
void be_ref_setup(duk_context *ctx)
{
    duk_push_heap_stash(ctx);
    duk_push_array(ctx);
    duk_push_int(ctx, 0);
    duk_put_prop_index(ctx, -2, 0);
    duk_put_prop_string(ctx, -2, "refs");
    duk_pop(ctx);
}