NOT_INITIALIZED_MSG:"[DataWorker] Not initialized - call initialize() first" = '[DataWorker] Not initialized - call initialize() first'
Single source of truth for the "task called before initialize()"
error. The header comment in data-worker.ts noted that an extracted
narrowing helper would lose TS narrowing if wasmModule were a
module-let. Reading via requireWasm(ctx) and returning the
unwrapped value sidesteps that: each task body uses a const wasm
that's narrowed for the rest of the function.
Single source of truth for the "task called before initialize()" error. The header comment in data-worker.ts noted that an extracted narrowing helper would lose TS narrowing if
wasmModulewere a module-let. Reading viarequireWasm(ctx)and returning the unwrapped value sidesteps that: each task body uses aconst wasmthat's narrowed for the rest of the function.