mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 04:52:26 -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]));
|
||||
}
|
||||
|
||||
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,
|
||||
|
|
Loading…
Add table
Reference in a new issue