Skip to content

Commit 928a953

Browse files
jmdyckljharb
authored andcommitted
Editorial: In ObjectDefineProperties, use a Record (tc39#3056)
... rather than a two-element List.
1 parent d4927f9 commit 928a953

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

spec.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29445,11 +29445,9 @@ <h1>
2944529445
1. If _propDesc_ is not *undefined* and _propDesc_.[[Enumerable]] is *true*, then
2944629446
1. Let _descObj_ be ? Get(_props_, _nextKey_).
2944729447
1. Let _desc_ be ? ToPropertyDescriptor(_descObj_).
29448-
1. Append the pair (a two element List) consisting of _nextKey_ and _desc_ to the end of _descriptors_.
29449-
1. For each element _pair_ of _descriptors_, do
29450-
1. Let _P_ be the first element of _pair_.
29451-
1. Let _desc_ be the second element of _pair_.
29452-
1. Perform ? DefinePropertyOrThrow(_O_, _P_, _desc_).
29448+
1. Append the Record { [[Key]]: _nextKey_, [[Descriptor]]: _desc_ } to _descriptors_.
29449+
1. For each element _property_ of _descriptors_, do
29450+
1. Perform ? DefinePropertyOrThrow(_O_, _property_.[[Key]], _property_.[[Descriptor]]).
2945329451
1. Return _O_.
2945429452
</emu-alg>
2945529453
</emu-clause>

0 commit comments

Comments
 (0)