Permalink
Browse files

Tests: Skip JSHint in browsers that don't support Function.prototype.…

…bind() to work around a bug in JSHint.
  • Loading branch information...
scottgonzalez committed Nov 22, 2013
1 parent 161d7ee commit 8eeb0e7d88a943e3860f8492661ac8090cb8d3ac
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/unit/testsuite.js
View
@@ -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;
}

0 comments on commit 8eeb0e7

Please sign in to comment.