Tests: Skip JSHint in browsers that don't support Function.prototype.bind() to work around a bug in JSHint.

This commit is contained in:
Scott González 2013-11-22 11:43:55 -05:00
parent 161d7ee389
commit 8eeb0e7d88

View File

@ -59,7 +59,9 @@ QUnit.config.urlConfig.push({
jshintLoaded = false;
TestHelpers.testJshint = function( module ) {
if ( QUnit.urlParams.nojshint ) {
// Function.prototype.bind check is needed because JSHint doesn't work in ES3 browsers anymore
// https://github.com/jshint/jshint/issues/1384
if ( QUnit.urlParams.nojshint || !Function.prototype.bind ) {
return;
}