1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
This commit is contained in:
Hajime-san 2024-10-06 16:23:10 +09:00
parent 977026c332
commit 69addc8faf

View file

@ -249,10 +249,7 @@ function createImageBitmap(
buf = new Uint8Array(TypedArrayPrototypeGetBuffer(image[_data]));
}
let sx;
if (typeof sxOrOptions === "number") {
sx = sxOrOptions;
}
const sx = typeof sxOrOptions === "number" ? sxOrOptions : undefined;
// TODO(Hajime-san): this should be real async
const processedImage = op_create_image_bitmap(
buf,