rem: var a=1; b=2; c={toString: null}; "hahbhc".replace(/[abc]/g, eval); 
add: a=1; b=2; c={toString: null}; "hahbhc".replace(/[abc]/g, eval); 
context: function test(){  printBugNumber (bug);  printStatus (summary);  expect = 'TypeError: can\'t convert Object to string';  try  {    function p() { return { toString: null } } "fafa".replace(/a/g, p);    actual = 'No Error';  }  catch(ex)  {    actual = ex + '';  }  reportCompare(expect, actual, summary + ': 1');  expect = 'TypeError: can\'t convert Object to string';  try  {    var a=1; b=2; c={toString: null}; "hahbhc".replace(/[abc]/g, eval);    actual = 'No Error';  }  catch(ex)  {    actual = ex + '';  }  reportCompare(expect, actual, summary + ': 2');  expect = 'TypeError: can\'t convert ({toString:(function () {yield 4;})}) to primitive type';  try  {    3 + ({toString:function(){yield 4} });    actual = 'No Error';  }  catch(ex)  {    actual = ex + '';  }  reportCompare(expect, actual, summary + ': 3');  expect = 'TypeError: ({}) is not a function';  try  {    3 + ({toString:({}) }) ;    actual = 'No Error';  }  catch(ex)  {    actual = ex + '';  }  reportCompare(expect, actual, summary + ': 4');  expect = 'TypeError: 3 is not a function';  try  {    ([5].map)(3);    actual = 'No Error';  }  catch(ex)  {    actual = ex + '';  }  reportCompare(expect, actual, summary + ': 5');  expect = 'TypeError: 5 is not a function';  try  {    (1 + (4))();    actual = 'No Error';  }  catch(ex)  {    actual = ex + '';  }  reportCompare(expect, actual, summary + ': 6');}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/94f8bde8827b79bff6772de1ff1d7cb215172192/regress-351503-02.js/buggy/js/tests/js1_7/regress/regress-351503-02.js