mirror of https://github.com/svaarala/duktape.git
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.
29 lines
651 B
29 lines
651 B
name: duk_push_bare_object
|
|
|
|
proto: |
|
|
duk_idx_t duk_push_bare_object(duk_context *ctx);
|
|
|
|
stack: |
|
|
[ ... ] -> [ ... obj! ]
|
|
|
|
summary: |
|
|
<p>Similar to <code><a href="#duk_push_object">duk_push_object()</a></code>
|
|
but the pushed object doesn't inherit from any other object, i.e. its internal
|
|
prototype is <code>null</code>. This call is equivalent to
|
|
<code>Object.create(null)</code>. Returns non-negative index (relative to
|
|
stack bottom) of the pushed object.</p>
|
|
|
|
example: |
|
|
duk_idx_t obj_idx;
|
|
|
|
obj_idx = duk_push_bare_object(ctx);
|
|
|
|
tags:
|
|
- stack
|
|
- object
|
|
|
|
seealso:
|
|
- duk_push_object
|
|
- duk_push_bare_array
|
|
|
|
introduced: 2.0.0
|
|
|