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.
 
 
 
 
 
 

23 lines
1.3 KiB

<h1 id="es6features">Ecmascript E6 features</h1>
<p>This section describes the small set of features Duktape borrows from the
<a href="https://people.mozilla.org/~jorendorff/es6-draft.html">current ES6 draft</a>.
These features are not fully compliant; the intent is to minimize custom features
and to align with the coming ES6 specification.</p>
<h2 id="es6-proto">Object.setPrototypeOf and Object.prototype.__proto__</h2>
<p><a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.setprototypeof">Object.setPrototypeOf</a>
allows user to set the internal prototype of an object which is not supported in
Ecmascript E5. The Ecmascript E6 draft also provides
<a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.__proto__">Object.prototype.__proto__</a>
which is an accessor property (setter/getter) which provides the same functionality
but is compatible with existing code base which has relied on a non-standard
<code>__proto__</code> property for a while. Duktape does not support the
<a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-__proto___-property-names-in-object-initializers">__proto__ property name in an object initializer</a>.</p>
<p>These custom features can be disabled with feature options.</p>
<h2 id="es6-proxy">Proxy object (subset)</h2>
<p>FIXME.</p>