Home
last modified time | relevance | path

Searched refs:MyPromise (Results 1 – 8 of 8) sorted by relevance

/external/v8/test/mjsunit/es6/
Dlegacy-subclassing.js32 class MyPromise extends Promise { } class
33 let myPromise = new MyPromise(() => {});
34 assertEquals(MyPromise, myPromise.constructor);
35 assertEquals(MyPromise, myPromise.then().constructor);
Dpromises.js998 function MyPromise(resolver) { class
1006 promise.__proto__ = MyPromise.prototype
1010 MyPromise.__proto__ = Promise
1011 MyPromise.defer = function() {
1016 MyPromise.prototype.__proto__ = Promise.prototype class
1017 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 …]
/external/v8/test/mjsunit/harmony/
Dpromise-species.js26 class MyPromise extends Promise { class
37 var myPromise = MyPromise.resolve().then();
41 assertTrue(myPromise instanceof MyPromise);
/external/v8/test/mjsunit/es6/debug-promises/
Dreject-with-undefined-reject.js21 function MyPromise(resolver) { class
28 MyPromise.prototype = new Promise(function() {});
29 p.constructor = MyPromise;
Dreject-with-invalid-reject.js21 function MyPromise(resolver) { class
28 MyPromise.prototype = new Promise(function() {});
29 p.constructor = MyPromise;
Dreject-with-throw-in-reject.js23 function MyPromise(resolver) { class
33 MyPromise.prototype = new Promise(function() {});
34 p.constructor = MyPromise;
Dthrow-with-throw-in-reject.js23 function MyPromise(resolver) { class
33 MyPromise.prototype = new Promise(function() {});
34 p.constructor = MyPromise;
Dthrow-with-undefined-reject.js23 function MyPromise(resolver) { class
30 MyPromise.prototype = new Promise(function() {});
31 p.constructor = MyPromise;