2 * File Name: RegExp/regress-001.js
4 * Description: Regression test case:
5 * JS regexp anchoring on empty match bug
6 * http://bugzilla.mozilla.org/show_bug.cgi?id=2157
8 * Author: christine@netscape.com
9 * Date: 19 February 1999
11 var SECTION = "RegExp/hex-001.js";
12 var VERSION = "ECMA_2";
13 var TITLE = "JS regexp anchoring on empty match bug";
14 var BUGNUMBER = "http://bugzilla.mozilla.org/show_bug.cgi?id=2157";
18 AddRegExpCases( /a||b/(''),
25 function AddRegExpCases( regexp, str_regexp, length, matches_array ) {
28 "( " + str_regexp + " ).length",
33 for ( var matches = 0; matches < matches_array.length; matches++ ) {
35 "( " + str_regexp + " )[" + matches +"]",
36 matches_array[matches],