Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -720,7 +720,7 @@ |
721 | 721 | } catch ( e ) { |
722 | 722 | // This needs to NOT use mw.log because these errors are common in production mode |
723 | 723 | // and not in debug mode, such as when a symbol that should be global isn't exported |
724 | | - if ( console && typeof console.log === 'function' ) { |
| 724 | + if ( window.console && typeof window.console.log === 'function' ) { |
725 | 725 | console.log( _fn + 'Exception thrown by ' + module + ': ' + e.message ); |
726 | 726 | console.log( e ); |
727 | 727 | } |