From 7f1e59343b1600e530472a90aa27a2bcc7b72c96 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Wed, 27 Apr 2016 12:46:14 -0400 Subject: Deferred: Provide explicit undefined context for jQuery.when raw casts Fixes gh-3082 Closes gh-3084 --- test/unit/deferred.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') 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(); -- cgit v1.2.3