var rejectedPromise = new Promise(function (resolve, reject) { throw new Error('Arghhhh!'); // Implicit rejection });