resourceloader: Don't call wfExpandUrl() on load.php urls
[mediawiki.git] / resources / src / es5-skip.js
bloba4039d89872d52bbede6f601b9ce8d07261fdd77
1 /*!
2  * Skip function for es5-shim module.
3  *
4  * Test for strict mode as a proxy for full ES5 function support (but not syntax)
5  * Per http://kangax.github.io/compat-table/es5/ this is a reasonable shortcut
6  * that still allows this to be as short as possible (there are no browsers we
7  * support that have strict mode, but lack other features).
8  *
9  * Do explicitly test for Function#bind because of PhantomJS (which implements
10  * strict mode, but lacks Function#bind).
11  *
12  * IE9 supports all features except strict mode, so loading es5-shim should be close to
13  * a no-op but does increase page payload).
14  */
15 return ( function () {
16         'use strict';
17         return !this && !!Function.prototype.bind;
18 }() );