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

Throw an error if the value at idx is not undefined or if the index is invalid.

There is no "get" primitive (duk_get_undefined()) because such a function would be a no-op.
example: | duk_require_undefined(ctx, -3); tags: - stack introduced: 1.0.0