Browse Source

Website fixes for bound .name, Thread constructor

pull/1134/head
Sami Vaarala 8 years ago
parent
commit
a317a5a2b4
  1. 9
      website/guide/duktapebuiltins.html
  2. 2
      website/guide/functionobjects.html

9
website/guide/duktapebuiltins.html

@ -562,10 +562,11 @@ ordinary function and as a constructor. The behavior is the same in both
cases:</p>
<ul>
<li>The first argument is checked to be a function (if not, a <code>TypeError</code>
is thrown). The return value is a new thread whose initial function is
recorded to be the argument function (this function will start executing
when the new thread is first resumed). The internal prototype of the
newly created Thread will be the <code>Duktape.Thread.prototype</code> object.</li>
is thrown). The function must be an Ecmascript function (bound or non-bound).
The return value is a new thread whose initial function is recorded to be the
argument function (this function will start executing when the new thread is
first resumed). The internal prototype of the newly created Thread will be the
<code>Duktape.Thread.prototype</code> object.</li>
</ul>
<h2>Duktape.Thread.prototype</h2>

2
website/guide/functionobjects.html

@ -16,7 +16,7 @@ afterwards):</p>
<tr><td class="propname">prototype</td><td>standard</td><td>Prototype used for new objects when called as a constructor. Present for most constructable Function objects, not copied to bound functions.</td></tr>
<tr><td class="propname">caller</td><td>standard</td><td>Accessor which throws an error. Present for strict functions and bound functions. Not copied to bound functions. (If <code>DUK_USE_NONSTD_FUNC_CALLER_PROPERTY</code> is given, non-strict functions will get a non-standard <code>caller</code> property.)</td></tr>
<tr><td class="propname">arguments</td><td>standard</td><td>Accessor which throws an error. Present for strict functions and bound functions. Not copied to bound functions.</td></tr>
<tr><td class="propname">name</td><td>Duktape</td><td>Function name, see below. Copied to bound function from target function.</td></tr>
<tr><td class="propname">name</td><td>Duktape</td><td>Function name, see below. Bound function name is based on this property, with a <code>"bound "</code> prefix (standard ES6 behavior).</td></tr>
<tr><td class="propname">fileName</td><td>Duktape</td><td>Filename or context where function was declared (same name as in error tracebacks). Copied to bound function from target function. </td></tr>
<tr><td class="propname">callee</td><td>n/a</td><td>Never assigned by default (listed here to clarify relationship to "caller" property).</td></tr>
</tbody>

Loading…
Cancel
Save