ceval: try smaller MAXIMUM_MEMORY
parent
bf6f2a01c7
commit
776152cf31
|
@ -95,6 +95,7 @@ export class ThreadedWasmWorker extends AbstractWorker<ThreadedWasmWorkerOpts> {
|
||||||
.then(wasmBinary =>
|
.then(wasmBinary =>
|
||||||
window[this.opts.module]({
|
window[this.opts.module]({
|
||||||
wasmBinary,
|
wasmBinary,
|
||||||
|
wasmMemory: new WebAssembly.Memory({ initial: 2048, maximum: 2048, shared: true } as any),
|
||||||
locateFile: (path: string) =>
|
locateFile: (path: string) =>
|
||||||
lichess.assetUrl(this.opts.baseUrl + path, { version, sameDomain: path.endsWith('.worker.js') }),
|
lichess.assetUrl(this.opts.baseUrl + path, { version, sameDomain: path.endsWith('.worker.js') }),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue