name: duk_seal proto: | void duk_seal(duk_context *ctx, duk_idx_t obj_idx); summary: |

Equivalent to Object.seal() for object at obj_idx; if sealed, the object is automatically compacted. If the index is invalid an error is thrown.

example: | duk_seal(ctx, -3); tags: - object - property introduced: 2.2.0