kayahr / console-shim

Browser console compatibility shim for legacy JavaScript engines
MIT License
86 stars 16 forks source link

Make window.console enumerable in older browsers. #11

Open immetoo2 opened 7 years ago

immetoo2 commented 7 years ago

The console spec says that the console functions are enumerable. In some order browsers this may not the case like; FF < 49

Some logger wrappers use Object.keys(window.console) to get all functions, so this fails if console is not enumerable.