Webworker code gets run twice in Firefox and the globalThis object is different in each run?
Install deps:
$ npm iThe example starts an instance of Firefox and loads html/index.html, which in turn loads a
single webworker which just prints a console line.
In practice it prints two console lines with different values for globalThis.
Run example:
$ npm start
> [email protected] start
> node .
globalThis in worker is JSHandle@object
globalThis in worker is [object DedicatedWorkerGlobalScope]