Skip to content
New issue

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

Calling createImageBitmap with a Blob, "TypeError: expected typed ArrayBufferView" occurred. #22649

Closed
Tracked by #23563
disjukr opened this issue Mar 1, 2024 · 0 comments · Fixed by #23518
Closed
Tracked by #23563
Labels
bug Something isn't working ext/web related to the ext/web crate web related to Web APIs

Comments

@disjukr
Copy link

disjukr commented Mar 1, 2024

Version: Deno 1.41.1

sprite

sprite

test.ts

const blob = await (await fetch(
  "https://github.com/denoland/deno/assets/690661/7612b2b7-519b-437b-a5f8-c95518ef79cf",
)).blob();

console.log(blob);
createImageBitmap(blob);
$ deno run -A test.ts
Blob { size: 1553, type: "image/png" }
error: Uncaught (in promise) TypeError: expected typed ArrayBufferView
    at ext:deno_canvas/01_image.js:241:50
    at eventLoopTick (ext:core/01_core.js:166:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ext/web related to the ext/web crate web related to Web APIs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants