Skip to content

Commit 285ddde

Browse files
authored
Merge pull request #40 from tc39/get-set-parameter
Add 'Changes to object type' section, draft note regarding 'unsafe' parameter
2 parents 54a84f3 + fb1c16b commit 285ddde

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

spec/index.html

+49
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,55 @@ <h1>
16301630
</emu-clause>
16311631
</emu-clause>
16321632
1633+
<emu-clause id="sec-changes-to-the-object-type">
1634+
<h1>Changes to the Object Type</h1>
1635+
<emu-clause id="sec-object-internal-methods-and-internal-slots">
1636+
<h1>Object Internal Methods and Internal Slots</h1>
1637+
<emu-table id="table-essential-internal-methods" caption="Essential Internal Methods" oldids="table-5">
1638+
<table>
1639+
<thead>
1640+
<tr>
1641+
<th>
1642+
Internal Method
1643+
</th>
1644+
<th>
1645+
Signature
1646+
</th>
1647+
<th>
1648+
Description
1649+
</th>
1650+
</tr>
1651+
</thead>
1652+
<tr>
1653+
<td>
1654+
[[Get]]
1655+
</td>
1656+
<td>
1657+
(_propertyKey_, _Receiver_<ins>, _unsafe_</ins>) <b>→</b> <em>any</em>
1658+
</td>
1659+
<td>
1660+
Return the value of the property whose key is _propertyKey_ from this object. If any ECMAScript code must be executed to retrieve the property value, _Receiver_ is used as the *this* value when evaluating the code. <ins>If this operation is to be performed from within an `unsafe` block, _unsafe_ will be *true*; otherwise, _unsafe_ will be *false*.</ins>
1661+
</td>
1662+
</tr>
1663+
<tr>
1664+
<td>
1665+
[[Set]]
1666+
</td>
1667+
<td>
1668+
(_propertyKey_, _value_, _Receiver_<ins>, _unsafe_</ins>) <b>→</b> Boolean
1669+
</td>
1670+
<td>
1671+
Set the value of the property whose key is _propertyKey_ to _value_. If any ECMAScript code must be executed to set the property value, _Receiver_ is used as the *this* value when evaluating the code. <ins>If this operation is to be performed from within an `unsafe` block, _unsafe_ will be *true*; otherwise, _unsafe_ will be *false*.</ins> Returns *true* if the property value was set or *false* if it could not be set.
1672+
</td>
1673+
</tr>
1674+
</table>
1675+
</emu-table>
1676+
<emu-note>
1677+
<p>DRAFT NOTE: Except where specified, it is assumed that existing invocations of [[Get]] or [[Set]] that do not currently pass a value for the _unsafe_ parameter are assumed to pass *false*. These call sites will be updated when the fully integrated specification text becomes available during Stage 2.</p>
1678+
</emu-note>
1679+
</emu-clause>
1680+
</emu-clause>
1681+
16331682
<emu-clause id="sec-changes-to-ordinary-and-exotic-objects-behaviours">
16341683
<h1>Changes to Ordinary and Exotic Objects Behaviours</h1>
16351684
<emu-clause id="sec-ordinary-object-internal-methods-and-internal-slots">

0 commit comments

Comments
 (0)