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.
 
 
 
 
 
 

18 lines
367 B

name: duk_freeze
proto: |
void duk_freeze(duk_context *ctx, duk_idx_t obj_idx);
summary: |
<p>Equivalent to <code>Object.freeze()</code> for object at
<code>obj_idx</code>; if frozen, the object is automatically
compacted. If the index is invalid an error is thrown.</p>
example: |
duk_freeze(ctx, -3);
tags:
- object
- property
introduced: 2.2.0