simplify Promise.prototype.done polyfill