ali-oss icon indicating copy to clipboard operation
ali-oss copied to clipboard

ios 10上的safari,polyfill后的Promise.prototype.finally被sdk给重写了

Open QinJhonny opened this issue 3 years ago • 1 comments

  • Browser Version or Node Version: 14.15.0
  • ali-oss Version: 6.15.2
  • Mini Showcase Repository:
  • Network Resoponse Header x-oss-request-id:

使用 import promiseFinally from 'promise.prototype.finally'; promiseFinally.shim(); 在不支持Promise.prototype.finally的机器上polyfill之后,只要调用一遍ali-oss sdk,polyfill之后的finally会变为undefined. 猜测应该是sdk里有对prototype方法做了改写。如果不调用sdk,则正常。

QinJhonny avatar Jun 07 '21 07:06 QinJhonny

同样的问题,Promise.prototype.finally的polyfill被ali-oss中的Internal Promise覆盖

Chastrlove avatar Oct 14 '21 05:10 Chastrlove