Server : Apache System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 User : pragmatice ( 1003) PHP Version : 8.2.24 Disable Function : NONE Directory : /home/etherpad/src/node_modules/events/tests/ |
// sigh... life is hard if (!global.console) { console = {} } var fns = ['log', 'error', 'trace']; for (var i=0 ; i<fns.length ; ++i) { var fn = fns[i]; if (!console[fn]) { console[fn] = function() {}; } } if (!Array.isArray) { Array.isArray = function(arr) { return Object.prototype.toString.call(arr) === '[object Array]'; } }