Created
April 26, 2016 00:15
-
-
Save jido/c22947e171c7e76314d865686583c5a5 to your computer and use it in GitHub Desktop.
var Promise messes up the test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mistigri = (function(){ | |
/* | |
if (Promise === undefined) | |
{ | |
console.log("Making a fake Promise"); | |
var Promise = function Promise(execute) { | |
this.then = execute; // Mistigri always returns, even if it ran into problems | |
this.catch = function(onrej) { | |
return this; | |
} | |
} | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment