1Test Promise construction. 2 3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5PASS promise instanceof Promise is true 6PASS promise.constructor is Promise 7PASS thisInInit is undefined 8PASS resolve instanceof Function is true 9PASS reject instanceof Function is true 10PASS new Promise() threw exception TypeError: Promise resolver undefined is not a function. 11PASS new Promise(37) threw exception TypeError: Promise resolver 37 is not a function. 12PASS promise = new Promise(function() { throw Error("foo"); }) did not throw exception. 13PASS result.message is "foo" 14PASS fulfilled 15PASS result is "hello" 16PASS successfullyParsed is true 17 18TEST COMPLETE 19 20