name: duk_push_bare_object proto: | duk_idx_t duk_push_bare_object(duk_context *ctx); stack: | [ ... ] -> [ ... obj! ] summary: |

Similar to duk_push_object() but the pushed object doesn't inherit from any other object, i.e. its internal prototype is null. This call is equivalent to Object.create(null). Returns non-negative index (relative to stack bottom) of the pushed object.

example: | duk_idx_t obj_idx; obj_idx = duk_push_bare_object(ctx); tags: - stack - object seealso: - duk_push_object introduced: 2.0.0