Lines Matching refs:Promise
52 module.exports = Promise;
54 function Promise(fn) { class
68 Promise._37 = null;
69 Promise._87 = null;
70 Promise._61 = noop;
72 Promise.prototype.then = function(onFulfilled, onRejected) {
73 if (this.constructor !== Promise) {
76 var res = new Promise(noop);
83 var res = new Promise(noop);
92 if (Promise._37) {
93 Promise._37(self);
149 newValue instanceof Promise
168 if (Promise._87) {
169 Promise._87(self, newValue);