create = (wasmModule, instancesPool, chunkSize, digestSize) => {
	if (instancesPool.length > 0) {
		const old = /** @type {WasmHash} */ (instancesPool.pop());
		old.reset();
		return old;
	}

	return new WasmHash(
		new WebAssembly.Instance(wasmModule),
		instancesPool,
		chunkSize,
		digestSize
	);
}
@param {WebAssembly.Module} wasmModule wasm module
@param {WasmHash[]} instancesPool pool of instances
@param {number} chunkSize size of data chunks passed to wasm
@param {number} digestSize size of digest returned by wasm
@returns {WasmHash} wasm hash