mediawiki.debug: Fix crash in browsers without Function#bind
authorErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 25 Aug 2014 23:59:29 +0000 (16:59 -0700)
committerEBernhardson <ebernhardson@wikimedia.org>
Wed, 27 Aug 2014 19:55:41 +0000 (19:55 +0000)
commit5c651dbac8f1e48864a4c6f5658922e7e4e00e9c
tree90225a5120de5c3fb123c67d3708713689491146
parent98cf5c6cf4780530f5bed1bb8ae88316e0988e36
mediawiki.debug: Fix crash in browsers without Function#bind

PhantomJS has a partial ECMAScript 5 implementation but it does
not include Function.prototype.bind.  Detect that and error gracefully
instead of erroring out in the middle of a phantomjs qunit run.

Change-Id: Ic06e08490e8f297fda479c4adaf9b2d8735f63ad
resources/src/mediawiki/mediawiki.debug.profile.js