Logging to the console not working in IE11

I'm finding that in IE11, console.log() is not working. The following code is being executed to create a dummy console object. The question is why is **console** undefined in the first place. Cobalt.Loader.js
// Stub out the console if not present (e.g. IE when not debugging, Microsoft Office plugins, etc.)
if (typeof console === "undefined") {
	// Stub in dummy functions in place of all possible `console` methods
	(function() {
		var dummyFn = function() { };
		var consoleMethods = ["log", "debug", "info", "warn", "error", "assert", "clear", "dir", "dirxml", "trace", "group", "groupCollapsed", "groupEnd", "time", "timeEnd", "timeStamp", "profile", "profileEnd", "count", "exception", "table"];
		for (var c = 0, len = consoleMethods.length; c < len; c++) {
			console[consoleMethods[c]] = dummyFn;
		}
	})();

Answers