@@ -90,8 +90,8 @@ function _assertIsNullProtoMutableObject(object, label) {
9090 }
9191}
9292
93- // Assert that the `zipped` iterator results as for Iterator.zip for the first `count` elements .
94- // Assumes inputs is an array of arrays of length >= count.
93+ // Assert that the `zipped` iterator yields the first `count` outputs of Iterator.zip .
94+ // Assumes ` inputs` is an array of arrays, each with length >= ` count` .
9595// Advances `zipped` by `count` steps.
9696function assertZipped ( zipped , inputs , count , label ) {
9797 // Last returned elements array.
@@ -117,14 +117,12 @@ function assertZipped(zipped, inputs, count, label) {
117117 assert . compareArray ( value , expected , itemLabel + ": values" ) ;
118118
119119 // Ensure value is a packed array with default data properties.
120- //
121- // This operation is destructive, so it has to happen last.
122120 assertIsPackedArray ( value , itemLabel ) ;
123121 }
124122}
125123
126- // Assert that the `zipped` iterator results as for Iterator.zipKeyed for the first `count` elements .
127- // Assumes inputs is an object whose values are arrays of length >= count.
124+ // Assert that the `zipped` iterator yields the first `count` outputs of Iterator.zipKeyed .
125+ // Assumes ` inputs` is an object whose values are arrays, each with length >= ` count` .
128126// Advances `zipped` by `count` steps.
129127function assertZippedKeyed ( zipped , inputs , count , label ) {
130128 // Last returned elements array.
@@ -154,8 +152,6 @@ function assertZippedKeyed(zipped, inputs, count, label) {
154152 assert . compareArray ( Object . values ( value ) , expectedValues , itemLabel + ": result object values" ) ;
155153
156154 // Ensure resulting object is a null-prototype mutable object with default data properties.
157- //
158- // This operation is destructive, so it has to happen last.
159155 _assertIsNullProtoMutableObject ( value , itemLabel ) ;
160156 }
161157}
0 commit comments