Browse Source

improve api description for duk_get_prop

pull/1/head
Sami Vaarala 11 years ago
parent
commit
7039ff8b18
  1. 9
      website/api/duk_get_prop.txt

9
website/api/duk_get_prop.txt

@ -14,9 +14,14 @@ If the property does not exist, a zero is returned and <tt>undefined</tt>
is provided as the property value.
If <tt>obj_index</tt> is invalid, throws an error.</p>
<p>The property access follows Ecmascript semantics (see
<p>The property access is equivalent to the Ecmascript expression:</p>
<pre class="ecmascript-code">
result = obj[key]
</pre>
<p>For semantics, see
<a href="http://www.ecma-international.org/ecma-262/5.1/#sec-11.2.1">Property Accessors</a>
and <a href="http://www.ecma-international.org/ecma-262/5.1/#sec-8.7.1">GetValue(V)</a>).
and <a href="http://www.ecma-international.org/ecma-262/5.1/#sec-8.7.1">GetValue(V)</a>.
Both the target value and the <tt>key</tt> are coerced:</p>
<ul>
<li>The target value is automatically coerced to an object. For instance,

Loading…
Cancel
Save