Searched defs:MyPromise (Results 1 - 6 of 6) sorted by relevance

/external/v8/test/mjsunit/es6/debug-promises/
H A Dreject-with-invalid-reject.js21 function MyPromise(resolver) { function
28 MyPromise.prototype = new Promise(function() {});
29 p.constructor = MyPromise;
26 MyPromise.prototype = new Promise(function() {}); class
H A Dreject-with-undefined-reject.js21 function MyPromise(resolver) { function
28 MyPromise.prototype = new Promise(function() {});
29 p.constructor = MyPromise;
26 MyPromise.prototype = new Promise(function() {}); class
H A Dthrow-with-undefined-reject.js11 // 2) when calling the undefined custom reject closure in MyPromise throws.
23 function MyPromise(resolver) { function
30 MyPromise.prototype = new Promise(function() {});
31 p.constructor = MyPromise;
28 MyPromise.prototype = new Promise(function() {}); class
H A Dreject-with-throw-in-reject.js11 // 2) when the custom reject closure in MyPromise throws an exception.
23 function MyPromise(resolver) { function
33 MyPromise.prototype = new Promise(function() {});
34 p.constructor = MyPromise;
31 MyPromise.prototype = new Promise(function() {}); class
H A Dthrow-with-throw-in-reject.js11 // 2) when the custom reject closure in MyPromise throws an exception.
23 function MyPromise(resolver) { function
33 MyPromise.prototype = new Promise(function() {});
34 p.constructor = MyPromise;
31 MyPromise.prototype = new Promise(function() {}); class
/external/v8/test/mjsunit/es6/
H A Dpromises.js801 function MyPromise(resolver) {
809 promise.__proto__ = MyPromise.prototype
813 MyPromise.__proto__ = Promise
814 MyPromise.defer = function() {
819 MyPromise.prototype.__proto__ = Promise.prototype
820 MyPromise.prototype.chain = function(resolve, reject) {
826 var p1 = new MyPromise(function(resolve, reject) { resolve(1) })
827 var p2 = new MyPromise(function(resolve, reject) { reject(2) })
828 var d3 = MyPromise.defer()
830 assertTrue(d3.promise instanceof MyPromise, "subclas
817 MyPromise.prototype.__proto__ = Promise.prototype class
[all...]

Completed in 79 milliseconds