blob: 19b9ca0aa0697751fd4408a36ff9f383b70dffef (
plain)
1
2
3
4
5
6
7
|
var promise = Promise.resolve(1);
var FakeCtor = function(exec){ exec(function(){}, function(){}); };
Object.defineProperty(Promise, Symbol.species, {value: FakeCtor});
// This just shouldn't crash. It does without bug 1287334 fixed.
promise.then(function(){});
this.reportCompare && reportCompare(true, true);
|