| OLD | NEW |
| 1 CONSOLE WARNING: Promise API is changing and this function might be affected. |
| 1 Test Promise. | 2 Test Promise. |
| 2 | 3 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 5 |
| 5 PASS thisInInit === firstPromise is false | 6 PASS thisInInit === firstPromise is false |
| 6 PASS thisInInit === window is true | 7 PASS thisInInit === window is true |
| 7 PASS firstPromise instanceof Promise is true | 8 PASS firstPromise instanceof Promise is true |
| 8 PASS secondPromise instanceof Promise is true | 9 PASS secondPromise instanceof Promise is true |
| 9 PASS firstPromise.catch(null) threw exception TypeError: onRejected must be a fu
nction or undefined. | 10 PASS firstPromise.catch(null) threw exception TypeError: onRejected must be a fu
nction or undefined. |
| 10 PASS firstPromise.catch(37) threw exception TypeError: onRejected must be a func
tion or undefined. | 11 PASS firstPromise.catch(37) threw exception TypeError: onRejected must be a func
tion or undefined. |
| 11 PASS thisInFulfillCallback === firstPromise is false | 12 PASS thisInFulfillCallback === firstPromise is false |
| 12 PASS thisInFulfillCallback === secondPromise is false | 13 PASS thisInFulfillCallback === secondPromise is false |
| 13 PASS thisInFulfillCallback === window is true | 14 PASS thisInFulfillCallback === window is true |
| 14 PASS result is "hello" | 15 PASS result is "hello" |
| 15 PASS result is "bye" | 16 PASS result is "bye" |
| 16 PASS fulfilled | 17 PASS fulfilled |
| 17 PASS successfullyParsed is true | 18 PASS successfullyParsed is true |
| 18 | 19 |
| 19 TEST COMPLETE | 20 TEST COMPLETE |
| 20 | 21 |
| OLD | NEW |