ceval: try smaller MAXIMUM_MEMORY

ceval-maximum-memory
Niklas Fiekas 2021-02-27 19:00:57 +01:00
parent bf6f2a01c7
commit 776152cf31
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ export class ThreadedWasmWorker extends AbstractWorker<ThreadedWasmWorkerOpts> {
.then(wasmBinary =>
window[this.opts.module]({
wasmBinary,
wasmMemory: new WebAssembly.Memory({ initial: 2048, maximum: 2048, shared: true } as any),
locateFile: (path: string) =>
lichess.assetUrl(this.opts.baseUrl + path, { version, sameDomain: path.endsWith('.worker.js') }),
})