archives

« Bugzilla Issues Index

#3833 — chapter 21: misc editorial


----------------------------------------
In 21.1.2.1 "String.fromCharCode ( ...codeUnits )":

{1}
21.1.2.1 / step 1:
Let /codeUnits/ is be a List containing the arguments passed to this function.

Delete "is"

----------------------------------------
In 21.1.2.2 "String.fromCodePoint ( ...codePoints )":

{2}
21.1.2.2 / step 2:
Let /length/ be number of elements in /codePoints/.

Insert "the" before "number"

----------------------------------------
In 21.1.2.4 "String.raw ( template , ...substitutions )":

{3}
21.1.2.4 / step 13.g:
If /nextIndex</ /numberOfSubstitutions/, let /next/ be ...

Insert space before less-than sign.

{4}
21.1.2.4 / step 13.h:
Else, let /next/ is the empty String.

s|is|be|

----------------------------------------
In 21.1.3.6 "String.prototype.endsWith ( searchString [ , endPosition] )":

{5}
21.1.3.6 / step 16:
If the /searchLength/ sequence of elements of /S/ starting at /start/ ...

The phrase "the /searchLength/ sequence of elements" doesn't make sense.
Change to "the sequence of /searchLength/ elements".

----------------------------------------
In 21.1.3.12 "String.prototype.normalize ( [ form ] )":

{6}
21.1.3.12 / step 8:
Let /ns/ be the String value is the result of normalizing /S/ ...

After "value", insert "that"

----------------------------------------
In 21.1.3.14 "String.prototype.replace (searchValue, replaceValue )":

{7}
21.1.3.14 / step 8:
If /functionReplace/ is *false*, then

s|functionReplace|functionalReplace}

----------------------------------------
In 21.1.3.14.1 "Runtime Semantics: GetReplaceSubstitution Abstract Operation":

{8}
21.1.3.14.1 / step 8:
Assert:Type( /replacement/) is String

After colon, insert a space.

----------------------------------------
In 21.1.3.18 "String.prototype.startsWith ( searchString [, position ] )":

{9}
21.1.3.18 / step 15:
If the /searchLength/ sequence of elements of /S/ starting at /start/ ...

The phrase "the /searchLength/ sequence of elements" doesn't make sense.
Change to "the sequence of <var>searchLength</var> elements".

----------------------------------------
In 21.2.2.8.1 "Runtime Semantics: CharacterSetMatcher Abstract Operation":

{10}
21.2.2.8.1 / step 1:
Return an internal Matcher closure that takes two arguments, a State /x/ and a
Continuation /c/, and performs the following steps steps when evaluated:

Delete extra "steps"

----------------------------------------
In 21.2.3.1 "RegExp ( pattern, flags )":

{11}
21.2.3.1 / step 6.a:
Let /P/ be be Get(/pattern/, "source").

Delete extra "be"

----------------------------------------
In 21.2.4.2 "get RegExp [ @@species ]":

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

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

----------------------------------------
In 21.2.5.2.1 "Runtime Semantics: RegExpExec ( R, S ) Abstract Operation":

{13}
21.2.5.2.1 / step 5.d:
Return(/result/).

Insert space after "Return".
Delete parentheses.

----------------------------------------
In 21.2.5.6 "RegExp.prototype [ @@match ] ( string )":

{14}
21.2.5.6 / step 7:
If /global/ is false, then

Put "false" in bold.

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


fixed in rev33 editor's draft


fixed in rev33