rem: printBugNumber (bug); 
add: printBugNumber(BUGNUMBER); 
context: function test(){  enterFunc ('test');  printBugNumber (bug);  printStatus (summary);/*******************  THESE WERE INCORRECT; SEE ABOVE  ************************  status = 'Section A of test';  strA = 'a';  actual = str.replace(strA, strB);  expect = str.replace(new RegExp(strA), strB);  reportCompare(expect, actual, status);  status = 'Section B of test';  strA = 'x';  actual = str.replace(strA, strB);  expect = str.replace(new RegExp(strA), strB);  reportCompare(expect, actual, status);  status = 'Section C of test';  strA = undefined;  actual = str.replace(strA, strB);  expect = str.replace(new RegExp(strA), strB);  reportCompare(expect, actual, status);  status = 'Section D of test';  strA = null;  actual = str.replace(strA, strB);  expect = str.replace(new RegExp(strA), strB);  reportCompare(expect, actual, status);  * This example is from jim@jibbering.com (see Bugzilla bug 92942)  * It is a variation on the example below.  *  * Namely, we are using the regexp /$/ instead of the regexp //.  * The regexp /$/ means we should match the "empty string" at the   * end-boundary of the word, instead of the one at the beginning.  *  status = 'Section E of test';  var strJim = 'aa$aa';  strA = '$';  actual = strJim.replace(strA, strB);             // bug -> 'aaZaa'  expect = strJim.replace(new RegExp(strA), strB); // expect 'aa$aaZ'  reportCompare(expect, actual, status);  *  * Note: 'Zabc' is the result we expect for 'abc'.replace('', 'Z').  *  * The string '' is supposed to be equivalent to new RegExp('') = //.  * The regexp // means we should match the "empty string" conceived of  * at the beginning boundary of the word, before the first character.  *  status = 'Section F of test';  strA = cnEmptyString;  actual = str.replace(strA, strB);  expect = 'Zabc';  reportCompare(expect, actual, status);  status = 'Section G of test';  strA = cnEmptyString;  actual = str.replace(strA, strB);  expect = str.replace(new RegExp(strA), strB);  reportCompare(expect, actual, status); *************************  END OF INCORRECT CASES ****************************///////////////////////////  OK, LET'S START OVER //////////////////////////////  status = 'Section 1 of test';  actual = 'abc'.replace('a', 'Z');  expect = 'Zbc';  reportCompare(expect, actual, status);  status = 'Section 2 of test';  actual = 'abc'.replace('b', 'Z');  expect = 'aZc';  reportCompare(expect, actual, status);  status = 'Section 3 of test';  actual = 'abc'.replace(undefined, 'Z');  expect = 'abc'; // String(undefined) == 'undefined'; no replacement possible  reportCompare(expect, actual, status);  status = 'Section 4 of test';  actual = 'abc'.replace(null, 'Z');  expect = 'abc'; // String(null) == 'null'; no replacement possible  reportCompare(expect, actual, status);  status = 'Section 5 of test';  actual = 'abc'.replace(true, 'Z');  expect = 'abc'; // String(true) == 'true'; no replacement possible  reportCompare(expect, actual, status);  status = 'Section 6 of test';  actual = 'abc'.replace(false, 'Z');  expect = 'abc'; // String(false) == 'false'; no replacement possible  reportCompare(expect, actual, status);  status = 'Section 7 of test';  actual = 'aa$aa'.replace('$', 'Z');  expect = 'aaZaa'; // NOT 'aa$aaZ' as in ECMA Final Draft; see above  reportCompare(expect, actual, status);  status = 'Section 8 of test';  actual = 'abc'.replace('.*', 'Z');  expect = 'abc';  // not 'Z' as in EMCA Final Draft  reportCompare(expect, actual, status);  status = 'Section 9 of test';  actual = 'abc'.replace('', 'Z');  expect = 'Zabc';  // Still expect 'Zabc' for this  reportCompare(expect, actual, status);  exitFunc ('test');}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/3703c3c05f398a63e55992f7687ef65273b26d6a/regress-83293.js/buggy/js/tests/ecma_3/String/regress-83293.js