mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
JS Test Library - handle global object toString containing address in debug builds
This commit is contained in:
parent
a5c6dd653b
commit
ae5466f096
@ -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]')",
|
||||
|
Loading…
Reference in New Issue
Block a user