Update cli/src/image_data.js

This commit is contained in:
Surma
2020-12-09 10:16:02 +00:00
committed by GitHub
parent c11e99c811
commit 5765ea5aa4

View File

@ -1,10 +1,5 @@
export default class ImageData {
constructor(data, width, height) {
// Need to manually copy the memory as wasm-bindgen does not by default
// and by the time we get control in JS land, the memory has already
// been corrupted.
// FIXME: This is bad because its overhead that we should only need
// to pay for Rust, not for C++.
this.data = data;
this.width = width;
this.height = height;