Skip to content

Commit

Permalink
Tests: Skip JSHint in browsers that don't support Function.prototype.…
Browse files Browse the repository at this point in the history
…bind() to work around a bug in JSHint.
  • Loading branch information
scottgonzalez committed Nov 22, 2013
1 parent 161d7ee commit 8eeb0e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/testsuite.js
Expand Up @@ -59,7 +59,9 @@ QUnit.config.urlConfig.push({


jshintLoaded = false; jshintLoaded = false;
TestHelpers.testJshint = function( module ) { 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; return;
} }


Expand Down

0 comments on commit 8eeb0e7

Please sign in to comment.