forked from external-repos/squoosh
Support threads and threads+SIMD in WebP2
This commit is contained in:
committed by
Ingvar Stepanyan
parent
24d241564e
commit
a951096aaa
@@ -44,6 +44,5 @@ export default async function encode(
|
||||
|
||||
if (!result) throw new Error('Encoding error');
|
||||
|
||||
// wasm can’t run on SharedArrayBuffers, so we hard-cast to ArrayBuffer.
|
||||
return result.buffer as ArrayBuffer;
|
||||
return result.buffer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user