archives

« Bugzilla Issues Index

#914 — 15.10.2.9 + 15.10.6.2: "NCapturingParens"


In 15.10.2.9 "AtomEscape",
rule 1 step 4 says:
If n=0 or n>NCapturingParens then throw a SyntaxError exception.

In "NCapturingParens", change the "C" to "c".


Similarly in 15.10.6.2 "RegExp.prototype.exec(string)",
under "Runtime Semantics: RegExpExec Abstract Operation",
step 12 says:
Let n be the length of r's captures array.
(This is the same value as 15.10.2.1's NCapturingParens.)


corrected in rev 12 editor's draft


corrected in rev 12, Nov. 22, 2012 draft