blob: 04087d6401648c68a6e21ff59a8687452bacfcb0 [file] [log] [blame]
let resolve;
function then(resolveElement) {
resolve = resolveElement;
}
function PromiseLike(executor) {
executor(()=>{}, ()=>{});
}
PromiseLike.resolve = x => x;
for (let i = 0; i < 1e5; i++) {
Promise.all.call(PromiseLike, [{ then }]);
resolve.hasOwnProperty('name');
}