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.
9 lines
515 B
9 lines
515 B
<div class="note">
|
|
Symbol values are visible in the C API as strings so that both
|
|
<code>duk_is_symbol()</code> and <code>duk_is_string()</code> are true.
|
|
This behavior is similar to Duktape 1.x internal strings. Symbols are
|
|
still an experimental feature; for now, you can distinguish Symbols from
|
|
ordinary strings using <code><a href="#duk_is_symbol">duk_is_symbol()</a></code>.
|
|
For the internal representation, see
|
|
<a href="https://github.com/svaarala/duktape/blob/master/doc/symbols.rst">symbols.rst</a>.
|
|
</div>
|
|
|