From: Michał Gołębiowski-Owczarek Date: Mon, 12 Feb 2018 19:24:58 +0000 (+0100) Subject: Tests: Fix Android 4.0 Deferred tests X-Git-Tag: 3.4.0~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a2bcc27f9c3ee24b3effac0fbe1285d1ee23cc5;p=jquery.git Tests: Fix Android 4.0 Deferred tests Closes gh-3967 --- 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" ) {