From 4a2bcc27f9c3ee24b3effac0fbe1285d1ee23cc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Mon, 12 Feb 2018 20:24:58 +0100 Subject: [PATCH] Tests: Fix Android 4.0 Deferred tests Closes gh-3967 --- test/unit/deferred.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/deferred.js b/test/unit/deferred.js index 2e414e642..70d1254a1 100644 --- a/test/unit/deferred.js +++ b/test/unit/deferred.js @@ -884,7 +884,9 @@ QUnit.test( "jQuery.when(thenable) - like Promise.resolve", function( assert ) { var customToStringThen = { then: function( onFulfilled ) { - onFulfilled(); + // Support: Android 4.0 only + // Strict mode functions invoked without .call/.apply get global-object context + onFulfilled.call(); } }; if ( typeof Symbol === "function" ) { -- 2.39.5