PM5544/scoped-polyfill — pull request #4 by brigand (2013-10-08 06:40:45+00:00)
Title: window.console vs console

If console isn't defined, it'll throw a reference error. So it should be either:

typeof console !== undefined && console.log(...)

or

window.console.&& console.log(...)

(This will still throw a type error if someone defined console as something else, but I'm assuming sanity.)