mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -05:00
fix
This commit is contained in:
parent
977026c332
commit
69addc8faf
1 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue