The worker version throws the following error:
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'this._rgb[0]')
Because this line posts objects of type Swatch, which has no rgb and population properties when deserialized here.
#139 fixes this.
The worker version throws the following error:
Because this line posts objects of type
Swatch, which has norgbandpopulationproperties when deserialized here.#139 fixes this.