diff --git a/spec.html b/spec.html index f5415b1021b..4154375afbb 100644 --- a/spec.html +++ b/spec.html @@ -30425,7 +30425,7 @@

AtomEscape

1. Evaluate |DecimalEscape| to obtain an integer _n_. 1. Assert: _n_ ≤ _NcapturingParens_. - 1. Call BackreferenceMatcher(_n_) and return its Matcher result. + 1. Call BackreferenceMatcher(_n_, _direction_) and return its Matcher result.

The production AtomEscape :: CharacterEscape evaluates as follows:

@@ -30446,12 +30446,12 @@

AtomEscape

1. Search the enclosing |Pattern| for an instance of a |GroupSpecifier| for a |RegExpIdentifierName| which has a StringValue equal to the StringValue of the |RegExpIdentifierName| contained in |GroupName|. 1. Assert: A unique such |GroupSpecifier| is found. 1. Let _parenIndex_ be the number of left-capturing parentheses in the entire regular expression that occur to the left of the located |GroupSpecifier|. This is the total number of Atom :: `(` GroupSpecifier Disjunction `)` Parse Nodes prior to or enclosing the located |GroupSpecifier|. - 1. Call BackreferenceMatcher(_parenIndex_) and return its Matcher result. + 1. Call BackreferenceMatcher(_parenIndex_, _direction_) and return its Matcher result.
-

Runtime Semantics: BackreferenceMatcher ( _n_ )

-

The abstract operation BackreferenceMatcher takes one argument, an integer _n_, and performs the following steps:

+

Runtime Semantics: BackreferenceMatcher ( _n_, _direction_ )

+

The abstract operation BackreferenceMatcher takes two arguments, an integer _n_ and an integer _direction_, and performs the following steps:

1. Return an internal Matcher closure that takes two arguments, a State _x_ and a Continuation _c_, and performs the following steps: 1. Let _cap_ be _x_'s _captures_ List.