1(function() { 2 3 var methods = [ 4 "log", 5 "debug", 6 "info", 7 "warn", 8 "error", 9 "assert", 10 "clear", 11 "dir", 12 "dirxml", 13 "trace", 14 "group", 15 "groupCollapsed", 16 "groupEnd", 17 "time", 18 "timeEnd", 19 "timeStamp", 20 "profile", 21 "profileEnd", 22 "count", 23 "exception", 24 "table" 25 ]; 26 27 if (!window.console) { 28 window.console = {}; 29 } 30 31 function dummy() {} 32 33 for (var i = 0; i < methods.length; i++) { 34 if (!window.console[methods[i]]) { 35 window.console[methods[i]] = dummy; 36 } 37 } 38 39 function _fn(method) { 40 return function(error) { 41 if (!window.console || 42 !window.console[method]) { 43 return; 44 } 45 window.console[method](error); 46 }; 47 } 48 49 window.log = {}; 50 for (i = 0; i < methods.length; i++) { 51 window.log[methods[i]] = _fn(methods[i]); 52 } 53 54}());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.