Skip to content

Commit

Permalink
use spec-internal enum in GetOwnPropertyKeys AO
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Mar 26, 2020
1 parent a895533 commit afbd765
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -25844,26 +25844,26 @@ <h1>Object.getOwnPropertyDescriptors ( _O_ )</h1>
<h1>Object.getOwnPropertyNames ( _O_ )</h1>
<p>When the `getOwnPropertyNames` function is called, the following steps are taken:</p>
<emu-alg>
1. Return ? GetOwnPropertyKeys(_O_, String).
1. Return ? GetOwnPropertyKeys(_O_, ~string~).
</emu-alg>
</emu-clause>

<emu-clause id="sec-object.getownpropertysymbols">
<h1>Object.getOwnPropertySymbols ( _O_ )</h1>
<p>When the `getOwnPropertySymbols` function is called with argument _O_, the following steps are taken:</p>
<emu-alg>
1. Return ? GetOwnPropertyKeys(_O_, Symbol).
1. Return ? GetOwnPropertyKeys(_O_, ~symbol~).
</emu-alg>

<emu-clause id="sec-getownpropertykeys" aoid="GetOwnPropertyKeys">
<h1>Runtime Semantics: GetOwnPropertyKeys ( _O_, _type_ )</h1>
<p>The abstract operation GetOwnPropertyKeys is called with arguments _O_ and _type_ where _O_ is an Object and _type_ is one of the ECMAScript specification types String or Symbol. The following steps are taken:</p>
<p>The abstract operation GetOwnPropertyKeys is called with arguments _O_ and _type_ where _O_ is an Object and _type_ is one of ~string~ or ~symbol~. The following steps are taken:</p>
<emu-alg>
1. Let _obj_ be ? ToObject(_O_).
1. Let _keys_ be ? _obj_.[[OwnPropertyKeys]]().
1. Let _nameList_ be a new empty List.
1. For each element _nextKey_ of _keys_ in List order, do
1. If Type(_nextKey_) is _type_, then
1. If Type(_nextKey_) is Symbol and _type_ is ~symbol~ or Type(_nextKey_) is String and _type_ is ~string~, then
1. Append _nextKey_ as the last element of _nameList_.
1. Return CreateArrayFromList(_nameList_).
</emu-alg>
Expand Down

0 comments on commit afbd765

Please sign in to comment.