Tests: Fix Android 4.0 Deferred tests

Closes gh-3967
This commit is contained in:
Michał Gołębiowski-Owczarek 2018-02-12 20:24:58 +01:00 committed by GitHub
parent 56742491bd
commit 4a2bcc27f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" ) {