Issue 6587: Debugger overwrites window.toString

https://code.google.com/p/fbug/issues/detail?id=6587