name: duk_to_uint32 proto: | duk_uint32_t duk_to_uint32(duk_context *ctx, duk_idx_t index); stack: | [ ... val! ... ] -> [ ... ToUint32(val)! ... ] summary: |

Replace the value at index with an Ecmascript ToUint32() coerced value. Returns the coerced value. If index is invalid, throws an error.

example: | printf("ToUint32(): %lu\n", (unsigned long) duk_to_uint32(ctx, -3)); tags: - stack introduced: 1.0.0