Add json2.js polyfill (v2014-02-04; with module skip function)
[mediawiki.git] / resources / src / jquery.json-deprecate.js
blob485d9c0bb23c9b24e0040633e88099bd9d960ff5
1 ( function ( mw, $ ) {
2         mw.log.deprecate( $, 'toJSON', $.toJSON, 'Use JSON.stringify instead (module "json" for polyfill).' );
3         mw.log.deprecate( $, 'evalJSON', $.evalJSON, 'Use JSON.parse instead (module "json" for polyfill).' );
4         mw.log.deprecate( $, 'secureEvalJSON', $.secureEvalJSON, 'Use JSON.parse instead (module "json" for polyfill).' );
5         mw.log.deprecate( $, 'quoteString', $.quoteString, 'Use JSON.parse instead (module "json" for polyfill).' );
6 }( mediaWiki, jQuery ) );