There appears to be code in protoype_improvements.js that provides a replacement console.log() in cases where you don't have firebug installed.
The problem is that this has a habit of popping up on production sites.
Who wrote this code? What's the best way of fixing this? Do we need a reliable way of calling Director::isDev() from within javascript, perhaps?