diff --git a/src/worker/async_proxy.js b/src/worker/async_proxy.js index f94201c6..0e6fdccc 100644 --- a/src/worker/async_proxy.js +++ b/src/worker/async_proxy.js @@ -55,7 +55,9 @@ function AsyncProxy(path, options) { this.seedRandom(INITIAL_RANDOM_SEED); // FIFO this.tasks = []; - this.worker.postMessage({event: 'configure', config: options.config}); + if (options && options.config) { + this.worker.postMessage({event: 'configure', config: options.config}); + } } /**