mirror of https://github.com/svaarala/duktape.git
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.
19 lines
371 B
19 lines
371 B
=proto
|
|
void duk_require_object_coercible(duk_context *ctx, duk_idx_t index);
|
|
|
|
=stack
|
|
[ ... val! ... ]
|
|
|
|
=summary
|
|
<p>Like <code><a href="#duk_is_object_coercible">duk_is_object_coercible()</a></code>
|
|
but throws a <code>TypeError</code> if <code>val</code> is not object coercible.</p>
|
|
|
|
=example
|
|
duk_require_object_coercible(ctx, -3);
|
|
|
|
=tags
|
|
stack
|
|
object
|
|
|
|
=introduced
|
|
1.0.0
|
|
|