aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2016-04-27 12:46:14 -0400
committerRichard Gibson <richard.gibson@gmail.com>2016-04-27 15:33:12 -0400
commit7f1e59343b1600e530472a90aa27a2bcc7b72c96 (patch)
tree7cbce73bd61d008d36931b6f7106ba0a4b9bd950 /test
parent9f268caaf43629addb9a1a2001ab341839300b14 (diff)
downloadjquery-7f1e59343b1600e530472a90aa27a2bcc7b72c96.tar.gz
jquery-7f1e59343b1600e530472a90aa27a2bcc7b72c96.zip
Deferred: Provide explicit undefined context for jQuery.when raw casts
Fixes gh-3082 Closes gh-3084
Diffstat (limited to 'test')
-rw-r--r--test/unit/deferred.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/deferred.js b/test/unit/deferred.js
index af237acf4..305740fa4 100644
--- a/test/unit/deferred.js
+++ b/test/unit/deferred.js
@@ -843,7 +843,10 @@ QUnit.test( "jQuery.when - joined", function( assert ) {
rejectedStandardPromise: true
},
counter = 49,
- expectedContext = (function() { "use strict"; return this; })();
+
+ // Support: Android 4.0 only
+ // Strict mode functions invoked without .call/.apply get global-object context
+ expectedContext = (function() { "use strict"; return this; }).call();
QUnit.stop();