Merge "maintenance: Handle errors in deleteEqualMessages.php"
[lhc/web/wiklou.git] / resources / src / es5-skip.js
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 }() );