Adds the WorkerOptions object as the second argument for a shared worker constructor. The previous second argument, a DOMString containing the worker’s name is still supported.
WorkerOptions is necessary for implementing the new feature (ES module).
Explainers: https://html.spec.whatwg.org/multipage/workers.html#shared-workers-and-the-sharedworker-interface https://html.spec.whatwg.org/multipage/workers.html#workeroptions