name: duk_require_object_coercible proto: | void duk_require_object_coercible(duk_context *ctx, duk_idx_t idx); stack: | [ ... val! ... ] summary: |

Like duk_is_object_coercible() but throws a TypeError if val is not object coercible.

example: | duk_require_object_coercible(ctx, -3); tags: - stack - object introduced: 1.0.0