Currently when the options parameter only contains type property the parameter is removed completely which results in a trailing comma. With this change we replace the options parameter with undefined.
Before
const hashcashWorker = new Worker(__webpack__worker__0, );
Now
const hashcashWorker = new Worker(__webpack__worker__0, void 0);
Currently when the options parameter only contains
type
property the parameter is removed completely which results in a trailing comma. With this change we replace the options parameter withundefined
.Before
Now
Fixes #65