Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajime-san committed Oct 6, 2024
1 parent 977026c commit 69addc8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ext/canvas/01_image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 69addc8

Please sign in to comment.