Commit d2f2ddf0 by TingSong-Syu

add console-polyfill 0.2.2

parent 2326117a
// Console-polyfill. MIT license.
// https://github.com/paulmillr/console-polyfill
// Make it safe to do console.log() always.
(function(global) {
'use strict';
if (!global.console) {
global.console = {};
}
var con = global.console;
var prop, method;
var dummy = function() {};
var properties = ['memory'];
var methods = ('assert,clear,count,debug,dir,dirxml,error,exception,group,' +
'groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,' +
'show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn').split(',');
while (prop = properties.pop()) if (!con[prop]) con[prop] = {};
while (method = methods.pop()) if (typeof con[method] !== 'function') con[method] = dummy;
// Using `this` for web workers & supports Browserify / Webpack.
})(typeof window === 'undefined' ? this : window);
!function(o){"use strict";o.console||(o.console={});for(var e,i,n=o.console,r=function(){},t=["memory"],l="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=t.pop();)n[e]||(n[e]={});for(;i=l.pop();)"function"!=typeof n[i]&&(n[i]=r)}("undefined"==typeof window?this:window);
//# sourceMappingURL=index.min.js.map
\ No newline at end of file
{"version":3,"sources":["index.js"],"names":["global","console","prop","method","con","dummy","properties","methods","split","pop","window","this"],"mappings":"CAGA,SAAUA,GACR,YACKA,GAAOC,UACVD,EAAOC,WAST,KAPA,GACIC,GAAMC,EADNC,EAAMJ,EAAOC,QAEbI,EAAQ,aACRC,GAAc,UACdC,EAAU,wMAE0DC,MAAM,KACvEN,EAAOI,EAAWG,OAAYL,EAAIF,KAAOE,EAAIF,MACpD,MAAOC,EAASI,EAAQE,OAAkC,kBAAhBL,GAAID,KAAwBC,EAAID,GAAUE,IAEjE,mBAAXK,QAAyBC,KAAOD","file":"index.min.js"}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment