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

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

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