Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -1015,8 +1015,8 @@ |
1016 | 1016 | this.load = function( modules, type ) { |
1017 | 1017 | // Validate input |
1018 | 1018 | if ( typeof modules !== 'object' && typeof modules !== 'string' ) { |
1019 | | - throw new Error( 'dependencies must be a string or an array, not a ' + |
1020 | | - typeof dependencies ) |
| 1019 | + throw new Error( 'modules must be a string or an array, not a ' + |
| 1020 | + typeof modules ) |
1021 | 1021 | } |
1022 | 1022 | // Allow calling with an external script or single dependency as a string |
1023 | 1023 | if ( typeof modules === 'string' ) { |