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