@@ -25,7 +25,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
2525 < div class ='fl pad1y space-right2 '>
2626 < span class ="strong "> 100% </ span >
2727 < span class ="quiet "> Statements</ span >
28- < span class ='fraction '> 70/70 </ span >
28+ < span class ='fraction '> 68/68 </ span >
2929 </ div >
3030
3131
@@ -46,7 +46,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
4646 < div class ='fl pad1y space-right2 '>
4747 < span class ="strong "> 100% </ span >
4848 < span class ="quiet "> Lines</ span >
49- < span class ='fraction '> 70/70 </ span >
49+ < span class ='fraction '> 68/68 </ span >
5050 </ div >
5151
5252
@@ -131,9 +131,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
131131< a name ='L66 '> </ a > < a href ='#L66 '> 66</ a >
132132< a name ='L67 '> </ a > < a href ='#L67 '> 67</ a >
133133< a name ='L68 '> </ a > < a href ='#L68 '> 68</ a >
134- < a name ='L69 '> </ a > < a href ='#L69 '> 69</ a >
135- < a name ='L70 '> </ a > < a href ='#L70 '> 70</ a >
136- < a name ='L71 '> </ a > < a href ='#L71 '> 71</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 3x</ span >
134+ < a name ='L69 '> </ a > < a href ='#L69 '> 69</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 3x</ span >
137135< span class ="cline-any cline-yes "> 3x</ span >
138136< span class ="cline-any cline-yes "> 3x</ span >
139137< span class ="cline-any cline-yes "> 3x</ span >
@@ -181,16 +179,14 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
181179< span class ="cline-any cline-yes "> 22x</ span >
182180< span class ="cline-any cline-yes "> 22x</ span >
183181< span class ="cline-any cline-yes "> 22x</ span >
184- < span class ="cline-any cline-yes "> 22x</ span >
185- < span class ="cline-any cline-yes "> 22x</ span >
186- < span class ="cline-any cline-yes "> 22x</ span >
187182< span class ="cline-any cline-yes "> 4x</ span >
188183< span class ="cline-any cline-yes "> 4x</ span >
189184< span class ="cline-any cline-yes "> 18x</ span >
190185< span class ="cline-any cline-yes "> 18x</ span >
191186< span class ="cline-any cline-yes "> 18x</ span >
192187< span class ="cline-any cline-yes "> 18x</ span >
193188< span class ="cline-any cline-yes "> 18x</ span >
189+ < span class ="cline-any cline-yes "> 18x</ span >
194190< span class ="cline-any cline-yes "> 22x</ span >
195191< span class ="cline-any cline-yes "> 6x</ span >
196192< span class ="cline-any cline-yes "> 6x</ span >
@@ -250,21 +246,19 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
250246*/
251247function dlastIndexOf( N, searchElement, x, strideX, offsetX ) {
252248 var idx;
253- var sv;
254- var ov;
255-
256249 if ( N <= 0 ) {
257250 return -1;
258251 }
259- ov = offsetX + ( ( N - 1 ) * strideX );
260- sv = -strideX;
252+ // Reverse the iteration order by flipping the stride and adjusting the offset:
253+ offsetX += ( N-1 ) * strideX;
254+ strideX *= -1;
261255
262- // Find index of the search element in the reversed view:
263- idx = dindexOf( N, searchElement, x, sv, ov );
256+ // Find the index of the search element in the reversed " view" :
257+ idx = dindexOf( N, searchElement, x, strideX, offsetX );
264258 if ( idx < 0 ) {
265259 return idx;
266260 }
267- // Convert the index from reversed view to the forward view:
261+ // Convert the index from reversed " view" to an index in the original " view" :
268262 idx = N - 1 - idx;
269263 return idx;
270264}
@@ -280,7 +274,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
280274 < div class ='footer quiet pad2 space-top1 center small '>
281275 Code coverage generated by
282276 < a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
283- at 2025-07-08T12:03:40.939Z
277+ at 2025-07-09T07:43:21.679Z
284278 </ div >
285279 < script src ="../../../../../prettify.js "> </ script >
286280 < script >
0 commit comments