Skip to content

Commit 8eeb0e7

Browse files
committed
Tests: Skip JSHint in browsers that don't support Function.prototype.bind() to work around a bug in JSHint.
1 parent 161d7ee commit 8eeb0e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/testsuite.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ QUnit.config.urlConfig.push({
5959

6060
jshintLoaded = false;
6161
TestHelpers.testJshint = function( module ) {
62-
if ( QUnit.urlParams.nojshint ) {
62+
// Function.prototype.bind check is needed because JSHint doesn't work in ES3 browsers anymore
63+
// https://github.com/jshint/jshint/issues/1384
64+
if ( QUnit.urlParams.nojshint || !Function.prototype.bind ) {
6365
return;
6466
}
6567

0 commit comments

Comments
 (0)