1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -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])); buf = new Uint8Array(TypedArrayPrototypeGetBuffer(image[_data]));
} }
let sx; const sx = typeof sxOrOptions === "number" ? sxOrOptions : undefined;
if (typeof sxOrOptions === "number") {
sx = sxOrOptions;
}
// TODO(Hajime-san): this should be real async // TODO(Hajime-san): this should be real async
const processedImage = op_create_image_bitmap( const processedImage = op_create_image_bitmap(
buf, buf,