针对你提出的问题“promise.withresolvers is not a function at new pdfdocumentloadingtask”,我可以从以下几个方面进行分析和解答: 检查promise.withResolvers的有效性: promise.withResolvers并不是一个标准的JavaScript或Promise API的一部分。它可能是某个特定库或框架中定义的辅助函数,用于创建具有预定义resolve...
Steps to reproduce the problem 1.Error occurs when opening PDF in electron app What is the expected behavior? Open PDF in read mode What went wrong? pdf.mjs:11172 Uncaught (in promise) TypeError: Promise.withResolvers is not a function at new PDFDocumentLoadingTask (pdf.mjs:11172:1) at ...
Open a PDF with Chrome 98 (nominally supported). It should error with Promise.withResolvers is not a function. (In 'Promise.withResolvers()', 'Promise.withResolvers' is undefined) because Chrome 98 does not implement Promise.withResolvers. What is the expected behavior? The list in gulp...
[1]; please see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers The only difference is that `PromiseCapability` also had a `settled`-getter, which was however not widely used and the call-sites can either be removed or re-factored to ...
This adds an inference rule when the target type is either T | Promise<T> or T | PromiseLike<T> such that we infer a union type rather than the common supertype. This also adds a shortcut when comp...