I have the following code:
if (typeof console === \"object\" && typeof console.error === \"function\") { function e(msg) {\"use strict\"; console
You should not be creating function inside if block. You are much better off doing:
var e = function(){}; if(typeof console === "object" && typeof console.error === "function"){ e = function (msg){ ... }; }