Update cli/src/image_data.js

Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
This commit is contained in:
Surma
2020-12-08 18:24:26 +00:00
committed by GitHub
parent d1533d66a2
commit fa5bd3d1c6

View File

@@ -5,7 +5,7 @@ export default class ImageData {
// been corrupted.
// FIXME: This is bad because its overhead that we should only need
// to pay for Rust, not for C++.
this.data = new Uint8ClampedArray(data);
this.data = data;
this.width = width;
this.height = height;
}