Followup 248ac9e: set $wgAutoloadClasses to an array after declaring
[mediawiki.git] / resources / src / es5-skip.js
bloba4039d89872d52bbede6f601b9ce8d07261fdd77
1 /*!
2 * Skip function for es5-shim module.
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).
9 * Do explicitly test for Function#bind because of PhantomJS (which implements
10 * strict mode, but lacks Function#bind).
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).
15 return ( function () {
16 'use strict';
17 return !this && !!Function.prototype.bind;
18 }() );