rem: window.addEventListener('load', crash, false); 
add: window.addEventListener('load', crash, false); 
context: function test(){  enterFunc ('test');  printBugNumber (bug);  printStatus (summary);    if (typeof window != 'undefined')  {    gDelayTestDriverEnd = true;    document.write('<button id="button" onclick="document.getElementsByTagName(\'button\')[0] = \'wtf\';">Crash</button>');    window.addEventListener('load', crash, false);   }  else  {    reportCompare(expect, actual, summary);  }  exitFunc ('test');}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/3703c3c05f398a63e55992f7687ef65273b26d6a/regress-367589.js/clean/js/tests/js1_5/extensions/regress-367589.js