diff --git a/spec.html b/spec.html index 00194d8..9ca9c48 100644 --- a/spec.html +++ b/spec.html @@ -205,7 +205,9 @@

Runtime Semantics: RegExpBuiltinExec ( _R_, _S_ )

1. Perform ! CreateDataProperty(_A_, `"0"`, _matchedSubstr_). 1. If _R_ contains any |GroupName|, then 1. Let _groups_ be ObjectCreate(*null*). - 1. Perform ! CreateDataProperty(_A_, `"groups"`, _groups_). + 1. Else, + 1. Let _groups_ be *undefined*. + 1. Perform ! CreateDataProperty(_A_, `"groups"`, _groups_). 1. For each integer _i_ such that _i_ > 0 and _i_ ≤ _n_ 1. Let _captureI_ be _i_th element of _r_'s _captures_ List. 1. If _captureI_ is *undefined*, let _capturedValue_ be *undefined*.