From 6be1a03b600c27e7063bb2d0d5199321c922d4e3 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 14 Apr 2022 17:27:40 -0400 Subject: [PATCH] Editorial: Introduce an alias In anticipation of a fix for #1426 (cf. https://github.com/tc39/ecma262/pull/2739#issuecomment-1099546846 ) --- spec.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec.html b/spec.html index 72c4edcbabd..27e69e5968d 100644 --- a/spec.html +++ b/spec.html @@ -34002,7 +34002,8 @@

1. Let _digits_ be the substring of _templateRemainder_ from 1 to 1 + _digitCount_. 1. Let _index_ be ℝ(StringToNumber(_digits_)). 1. Assert: 0 ≤ _index_ ≤ 99. - 1. If 0 < _index_ ≤ the number of elements in _captures_, then + 1. Let _captureLen_ be the number of elements in _captures_. + 1. If 0 < _index_ ≤ _captureLen_, then 1. Let _capture_ be _captures_[_index_ - 1]. 1. If _capture_ is *undefined*, then 1. Let _refReplacement_ be the empty String.