Undoes `patchPromise`.

A no-op if `patchPromise` had not been called.
function unpatchPromise() {
  for (let method of methods) {
    if (Promise.prototype[method.name] === method) {
      delete Promise.prototype[method.name];
    }
  }
}