archives

« Bugzilla Issues Index

#2540 — chapter 21: misc editorial


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

21.1.2.4 / step 13.f.i:
... If /length/ is 0, the empty string is returned.
'length' is not defined. Change to 'len'?

----------------------------------------
In 21.1.3.12 "String.prototype.normalize ( form = "NFC" )":

21.1.3.12 / step 4:
If /form/ is not provided or *undefined* let /form/ be "NFC".
Normally, a condition of the form "X is not A or B"
would be interpreted as "X is neither A nor B"
(i.e., the "not" applies to both A and B).
But here it seems to mean "X is not A or X is B"
(i.e., the "not" only applies to A).
Change to:
If /form/ is not provided or /form/ is *undefined*, ...

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

21.1.3.14.1 / step 5:
Assert: /position/ is a non-negative integer.
s|non-negative|nonnegative|

----------------------------------------
In 21.2.2.15.1 "Runtime Semantics: CharacterRange Abstract Operation":

The algorithm's steps are missing labels.

----------------------------------------
In 21.2.3.3.1 "Runtime Semantics: RegExpAlloc Abstract Operation":

21.2.3.3.1 / step 2:
... (..., PropertyDescriptor {..., [[Configurable]]: *false}).*
De-bold "})."

----------------------------------------
In 21.2.5.2 "RegExp.prototype.exec(string)":

21.2.5.2 / step 7:
Return the result of the RegExpExec(/R/, /S/, *false*).
Delete "the" before "RegExpExec"

----------------------------------------
In 21.2.5.2.1 "Runtime Semantics: RegExpExec Abstract Operation":

21.2.5.2.1 / step 12.a:
If /i/ < 0 or /i/ > /length/, then
'i' isn't necessarily defined at that point.

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


fixed in rev25 editor's draft


confirmed fixed.