archives

« Bugzilla Issues Index

#4157 — 21.2.5.2.2 RegExpBuiltinExec, step 17.a: off-by-one error about length and position


21.2.5.2.2 Runtime Semantics: RegExpBuiltinExec


[Premature submission; the Descripition is:]

21.2.5.2.2 Runtime Semantics: RegExpBuiltinExec, step17.a. reads:

"... If e is greater than the length of Input, then eUTF is 1 + the number of code units in S."

It should be:

"... If e is equal to the length of Input, then eUTF is the number of code units in S."


fixed in rev36 editor's draft


in rev36