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.
21 lines
504 B
21 lines
504 B
name: duk_require_object_coercible
|
|
|
|
proto: |
|
|
void duk_require_object_coercible(duk_context *ctx, duk_idx_t idx);
|
|
|
|
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
|
|
<a href="http://www.ecma-international.org/ecma-262/5.1/#sec-9.10">object coercible</a>.</p>
|
|
|
|
example: |
|
|
duk_require_object_coercible(ctx, -3);
|
|
|
|
tags:
|
|
- stack
|
|
- object
|
|
|
|
introduced: 1.0.0
|
|
|