From 578cd2a470631eeae78b29f9483aec49a3180804 Mon Sep 17 00:00:00 2001 From: "pschwartau%netscape.com" Date: Sun, 9 Feb 2003 00:52:21 +0000 Subject: [PATCH] Re-indexing the repeat_str() function to output N copies of the given string instead of N+1. --- js/tests/js1_5/Regress/regress-192414.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tests/js1_5/Regress/regress-192414.js b/js/tests/js1_5/Regress/regress-192414.js index 76a16c9c9e72..ea69905e9cca 100644 --- a/js/tests/js1_5/Regress/regress-192414.js +++ b/js/tests/js1_5/Regress/regress-192414.js @@ -53,7 +53,7 @@ var expectedvalues = []; /* * We will form an eval string to set the result-variable |actual|. - * To get a feel for this, suppose N were 2. Then the eval string is + * To get a feel for this, suppose N were 3. Then the eval string is * 'actual = (1&(1&(1&1)));' The expected value after eval() is 1. */ status = inSection(1); @@ -75,7 +75,7 @@ test(); function repeat_str(str, repeat_count) { - var arr = new Array(repeat_count); + var arr = new Array(--repeat_count); while (repeat_count != 0) arr[--repeat_count] = str; return str.concat.apply(str, arr);