Support threads and threads+SIMD in WebP2

This commit is contained in:
Ingvar Stepanyan
2020-11-10 02:36:55 +00:00
committed by Ingvar Stepanyan
parent 24d241564e
commit a951096aaa
9 changed files with 90 additions and 2492 deletions

View File

@@ -44,6 +44,5 @@ export default async function encode(
if (!result) throw new Error('Encoding error');
// wasm cant run on SharedArrayBuffers, so we hard-cast to ArrayBuffer.
return result.buffer as ArrayBuffer;
return result.buffer;
}