archives

« Bugzilla Issues Index

#4218 — Ch. 22: Various editorial issues


22.1.1.2 Array (len)
Step 7.a-b: Change CreateDataPropertyOrThrow to CreateDataProperty and assert result value is `true` (no change in behaviour - only consistency with other algorithms).


22.1.1.3 Array (...items )
Step 10.b: "Let itemK be kth element of items" -> "Let itemK be items[k]."
Step 10.c-d: Change CreateDataPropertyOrThrow to CreateDataProperty and assert result value is `true` (no change in behaviour - only consistency with other algorithms).


22.1.2.3 Array.of ( ...items )
Step 8.c: "kValue.[[value]]" -> "kValue"


22.1.3 Properties of the Array Prototype Object
1st para: "a length property" -> change "length" to fixed width font


22.1.3.1 Array.prototype.concat ( ...arguments )
Note 1: "step 10" -> "step 8"


22.1.3.3 Array.prototype.copyWithin (target, start [ , end ] )
Steps 15.a-c: Change "=" to "be".


22.1.3.9 Array.prototype.findIndex ( predicate [ , thisArg ] )
Note, 4th para: Remove "; elements that are deleted after the call to findIndex begins and before being visited are not visited" -> not present in Array.prototype.find note


22.1.3.11 Array.prototype.indexOf ( searchElement [ , fromIndex ] )
Note, 2nd para: Missing space "-1is"


22.1.3.14 Array.prototype.lastIndexOf ( searchElement [ , fromIndex ] )
Note, 2nd para: Missing space "-1is"


22.1.3.18 Array.prototype.reduce ( callbackfn [ , initialValue ] )
Note, 2nd para: "(or value from previous" -> remove "or"


22.1.3.19 Array.prototype.reduceRight ( callbackfn [ , initialValue ] )
Note, 2nd para: "(or value from previous" -> remove "or"


22.1.3.24 Array.prototype.sort (comparefn)
Bad reference for "sparse" (22.1)
3rd algo, Step 1: Remove comma after "[[Set]]"


22.1.3.25 Array.prototype.splice (start, deleteCount , ...items )
Step 9.b: Missing full stop
Note 1: "step 18" -> "step 24"


22.2.1.1.1 Runtime Semantics: AllocateTypedArray (newTarget, length )
Preamble: "Typed Array instance" -> "TypedArray instance"


22.2.1.2 %TypedArray% ( typedArray )
Step 18.h.ii: "Let status be " -> "Perform"


22.2.2 Properties of the %TypedArray% Intrinsic Object
Remove first sentence: "The %TypedArray% intrinsic object is a built-in function object." (Not present in other built-in constructor functions)


22.2.2.1 %TypedArray%.from ( source [ , mapfn [ , thisArg ] ] )
Note: "it does not require that its this value be a TypedArray constructor." -> No longer correct, C must be TypedArray constructor (or subclass).



22.2.2.1.1 Runtime Semantics: TypedArrayFrom( constructor, items, mapfn, thisArg )
Step 5: "else" -> "Else"


22.2.2.4 get %TypedArray% [ @@species ]
Preamble: Wrong font style for %TypedArray%
Note: "Typed Array prototype" -> "TypedArray prototype"


22.2.3 Properties of the %TypedArrayPrototype% Object
Typo: "or or"


22.2.3.1 get %TypedArray%.prototype.buffer
Step 3: Missing comma between "slot throw"


22.2.3.2 get %TypedArray%.prototype.byteLength
Step 3: Missing comma between "slot throw"


22.2.3.3 get %TypedArray%.prototype.byteOffset
Step 3: Missing comma between "slot throw"


22.2.3.6 %TypedArray%.prototype.entries ( )
Change preamble to: "The following steps are taken:" (consistency with other methods, `this value O` is not used in other preambles)


22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O )
Step 3: Missing comma between "slot throw"


22.2.3.22.1 %TypedArray%.prototype.set (array [ , offset ] )
Preamble: "Set multiple" -> "Sets multiple"
Step 6: Missing full stop


22.2.3.22.2 %TypedArray%.prototype.set(typedArray [, offset ] )
Preamble: "Set multiple" -> "Sets multiple"
Step 6: Missing full stop
Step 28.a.ii: "Let status be" -> "Perform"


22.2.3.25 %TypedArray%.prototype.sort ( comparefn )
Note: "when a comparefn" -> "when comparefn"


22.2.3.26 %TypedArray%.prototype.subarray( [ begin [ , end ] ] )
Preamble: "element types" -> "element type"
Step 7: Missing full stop


22.2.3.28 %TypedArray%.prototype.toString ( )
Preamble: "prototype.toString" -> to fixed width font
Preamble: "Array.prototype.toString" -> to fixed width font

22.2.3.30 %TypedArray%.prototype [ @@iterator ] ( )
Preamble: "prototype.values" -> wrong font style


22.2.4 The TypedArray Constructors
Preamble: "Each of these" -> "Each of the" (? context for "these" is missing).


22.2.6 Properties of TypedArray Prototype Objects
Typo: "or or"


22.2.6.1 TypedArray.prototype.BYTES_PER_ELEMENT
1st para: Fixed width font for "prototype.BYTES_PER_ELEMENT"


22.2.6.2 TypedArray.prototype.constructor
1st para: Fixed width font for "prototype.constructor"


22.2.7 Properties of TypedArray Instances
1st para: "Each TypedArray instances" -> "Each TypedArray instance"
1st para: " Each TypedArray instances have" -> " Each TypedArray instance has"


fixed in rev37 editor's draft


In Rev37