archives

« Bugzilla Issues Index

#3834 — chapter 22: misc editorial


----------------------------------------
In 22.1.2.5 "get Array [ @@species ]":

{1}
22.1.2.5 / step 1:
Return *this*.

s|*this*|the *this* value|

----------------------------------------
In 22.1.3.1 "Array.prototype.concat ( ...arguments )":

{2}
22.1.3.1 / step 7.d.iv:
If /n/ + /len/+ > 2^53-1, throw a *TypeError* exception.

Delete "+" after "len"

----------------------------------------
In 22.1.5.2.1 "%ArrayIteratorPrototype%.next( )":

{3}
22.1.5.2.1 / step 12:
If /itemKind/ is "key", CreateIterResultObject(/index/, *false*).

Insert "return"

{4}
22.1.5.2.1 / step 17.a:
Assert /itemKind/ is "key+value".

After "Assert", insert colon

----------------------------------------
In 22.2.1.1 "%TypedArray% ( length )":

{5}
22.2.1.1 / preamble:
This description applies only if the %TypedArray% function is called and the
Type of the first argument is not Object.

After "called", insert "with at least one argument"

----------------------------------------
In 22.2.1.1.1 "Runtime Semantics: AllocateTypedArray (newTarget, length )":

{6}
22.2.1.1.1 / preamble:
The abstract operation AllocateTypedArray with argument /newTarget/ and optional
argument /length/ is used to validate and create an instance of a TypedArray
constructor. If the /length/ argument ...

Both occurrences of "length" are in (italic) sans, should be (italic) serif.

----------------------------------------
In 22.2.1.2 "%TypedArray% ( typedArray )":

{7}
22.2.1.2 / para 2:
%TypedArray%called with argument /typedArray/ performs the following steps:

Insert space before "called"

----------------------------------------
In 22.2.1.3 "%TypedArray% ( object )":

{8}
22.2.1.3 / preamble:
This description applies only if the %TypedArray% function is called with at
least one argument and the Type of first argument is Object ...

Insert "the" before "first"

----------------------------------------
In 22.2.2.1 "%TypedArray%.from ( source [ , mapfn [ , thisArg ] ] )":

{9}
22.2.2.1 / note:
NOTE The from function is an intentionally generic factory method; it does not
require that its *this* value be a Typed Array constructor. ...

s|Typed Array|TypedArray|

----------------------------------------
In 22.2.2.1.1 "Runtime Semantics: TypedArrayFrom(...)":

{10}
22.2.2.1.1 / step 3:
Assert: Type(/mapfn/) is either a callable Object or Undefined.

Type(x) doesn't yield 'a callable Object', the closest it gets is 'Object'.

----------------------------------------
In 22.2.2.2 "%TypedArray%.of ( ...items )":

{11}
22.2.2.2 / step 8.c:
Let /status/ be Put(/newObj/,/Pk/, /kValue/. *true*).

Insert a space after first comma.
Change dot (after /kValue/) to comma

----------------------------------------
In 22.2.2.4 "get %TypedArray% [ @@species ]":

{12}
22.2.2.4 / step 1:
Return *this*.

s|*this*|the *this* value|

----------------------------------------
In 22.2.3.23 "%TypedArray%.prototype.slice ( start, end )":

{13}
22.2.3.23 / step 15:
Let /A/ AllocateTypedArray(/C/, /count/).

After "A", insert "be"

----------------------------------------
In 22.2.3.25 "%TypedArray%.prototype.sort ( comparefn )":

{14}
22.2.3.25 / para 5:
The Typed Array SortCompare abstract operation is called with two arguments
/x/ and /y/, the following steps are taken:

s|Typed Array|TypedArray|
Start the sentence with "When"?

----------------------------------------
In 22.2.4.1 "TypedArray( ... argumentsList)":

{15}
22.2.4.1 / step 5:
If IsConstructor (/constructor/) is *false*, throw a *TypeError* exception.

'constructor' is not defined. Change to 'super'

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


fixed in rev33 editor's draft


fixed in rev33