JS Test Library - handle global object toString containing address in debug builds

This commit is contained in:
bob%bclary.com 2006-01-13 19:50:49 +00:00
parent a5c6dd653b
commit ae5466f096

View File

@ -187,7 +187,7 @@ new TestCase( SECTION,
new TestCase( SECTION,
"var f = new Object( String.prototype.indexOf ); f('"+GLOBAL+"')",
0,
eval("var f = new Object( String.prototype.indexOf ); f('"+GLOBAL.replace(/ @ 0x[0-9a-fA-F]+ \(native @ 0x[0-9a-fA-F]+\)/, '')+"')") );
eval("var f = new Object( String.prototype.indexOf ); f('"+GLOBAL+"')") );
new TestCase( SECTION,
"var f = new Function(); f.toString = Object.prototype.toString; f.indexOf = String.prototype.indexOf; f.indexOf('[object Function]')",