You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
369 B

=proto
void duk_require_null(duk_context *ctx, int index);
=stack
[ ... val! ... ]
=summary
<p>Throw an error if the value at <tt>index</tt> is not <tt>null</tt>
or if the index is invalid.</p>
<div class="note">
There is no "get" primitive (<tt>duk_get_null()</tt>) because such a
function would be a no-op.
</div>
=example
duk_require_null(ctx, -3);
=tags
stack