rem: s = Script('var tmp = function(o) { switch(o) { case String: case 1: return ""; } }; actualStringInvariant = (String === S); actualStringPrototypeInvariant = (String.prototype === Sp); actual = "".trim();'); try 
add: if (typeof Script == 'undefined') 
context: function test(){  enterFunc ('test');  printBugNumber (bug);  printStatus (summary + ': in function');  String.prototype.trim = function() { return 'hallo'; };  const S = String;  const Sp = String.prototype;  expect = 'hallo';  var expectStringInvariant = true;  var actualStringInvariant;  var expectStringPrototypeInvariant = true;  var actualStringPrototypeInvariant;  s = Script('var tmp = function(o) { switch(o) { case String: case 1: return ""; } }; actualStringInvariant = (String === S); actualStringPrototypeInvariant = (String.prototype === Sp); actual = "".trim();');  try  {    s();  }  catch(ex)  {    actual = ex + '';  }    reportCompare(expect, actual, 'trim() returned');  reportCompare(expectStringInvariant, actualStringInvariant, 'String invariant');  reportCompare(expectStringPrototypeInvariant,                 actualStringPrototypeInvariant,                'String.prototype invariant');  exitFunc ('test');}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/dec1509dd9f1979f796ef6cfa5950c5ebeae2288/regress-354541-04.js/clean/js/tests/js1_5/String/regress-354541-04.js