We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my issue:
// main.ts worker.onmessage = async function (e: MessageEvent) { console.log(e.data) }
// worker.ts self.onmessage = async function (e) { // this.console.log(e.data) self.fetch(e.data.url, { headers: { range: e.data.range } }).then(res => (res.blob())) .then(res => res.arrayBuffer()) // .then(res=> this.console.log(res)) .then(res => self.postMessage(res)) .catch(e => this.console.log(e)) }
then i got an [object Object] and it is not ArrayBuffer
if i use transfer list
i got an error:
error: Uncaught Error: TS2554 [ERROR]: Expected 1 arguments, but got 2. .then(res => self.postMessage(res, [res])) ~~~~~ at file:///D:/works/deno/worker.ts:10:40 at WorkerImpl.#poll ($deno$/web/workers.ts:198:17)
The text was updated successfully, but these errors were encountered:
In addition, I set the deno option to true
Sorry, something went wrong.
Structured clone and transfer are not yet implemented: #3557
We should change the typing to allow transfer list and throw an error like in case of structured close.
No branches or pull requests
my issue:
then i got an [object Object] and it is not ArrayBuffer
if i use transfer list
i got an error:
The text was updated successfully, but these errors were encountered: