summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Promise/bug-1289040.js
blob: f5a9fd98e4a5826d3de7a3a818ff1ebef3025b39 (plain)
1
2
3
4
5
6
7
8
var global = newGlobal();
Promise.prototype.then = global.Promise.prototype.then;
p1 = new Promise(function f(r) {
    r(1);
});
p2 = p1.then(function g(){});

this.reportCompare && reportCompare(true,true);