Searched refs:MyPromise (Results 1 – 8 of 8) sorted by relevance
32 class MyPromise extends Promise { } class33 let myPromise = new MyPromise(() => {});34 assertEquals(MyPromise, myPromise.constructor);35 assertEquals(MyPromise, myPromise.then().constructor);
998 function MyPromise(resolver) { class1006 promise.__proto__ = MyPromise.prototype1010 MyPromise.__proto__ = Promise1011 MyPromise.defer = function() {1016 MyPromise.prototype.__proto__ = Promise.prototype class1017 MyPromise.prototype.chain = function(resolve, reject) {1023 var p1 = new MyPromise(function(resolve, reject) { resolve(1) })1024 var p2 = new MyPromise(function(resolve, reject) { reject(2) })1025 var d3 = MyPromise.defer()1027 assertTrue(d3.promise instanceof MyPromise, "subclass/instance-my3")[all …]
26 class MyPromise extends Promise { class37 var myPromise = MyPromise.resolve().then();41 assertTrue(myPromise instanceof MyPromise);
21 function MyPromise(resolver) { class28 MyPromise.prototype = new Promise(function() {});29 p.constructor = MyPromise;
23 function MyPromise(resolver) { class33 MyPromise.prototype = new Promise(function() {});34 p.constructor = MyPromise;
23 function MyPromise(resolver) { class30 MyPromise.prototype = new Promise(function() {});31 p.constructor = MyPromise;