You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
296 B

4 years ago
  1. // sigh... life is hard
  2. if (!global.console) {
  3. console = {}
  4. }
  5. var fns = ['log', 'error', 'trace'];
  6. for (var i=0 ; i<fns.length ; ++i) {
  7. var fn = fns[i];
  8. if (!console[fn]) {
  9. console[fn] = function() {};
  10. }
  11. }
  12. if (!Array.isArray) {
  13. Array.isArray = require('isarray');
  14. }