News for hackers. Stuff that matters.
Re:Ask HN: JavaScript dev environment ? by devpopol on Saturday July 03, 2010 @03:31PM (#1484303)
if(!window.console){window.console = {};} if(!(toString(window.console.log) === '[object Function]')) {window.console.log = function(){};}

there, fixed..

Re:Ask HN: JavaScript dev environment ? by jmtulloss on Sunday July 04, 2010 @12:01AM (#1485095)
This won't work in node. That's not a huge deal, but it's pretty simple to come up with a cleaner solution that works in all environments.