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.
duk_get_null()
) because such a
function would be a no-op.