The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on.
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order.
The AbstractWorker.onerror property represents an EventHandler, that is a function to be called when the error event occurs and bubbles through the Worker.
The Worker.onmessage property represents an EventHandler, that is a function to be called when the message event occurs.
The postMessage() method of the Worker interface sends a message to the worker's inner scope.
An optional array of Transferable objects to transfer ownership of. If the ownership of an object is transferred, it becomes unusable (neutered) in the context it was sent from and it becomes available only to the main thread it was sent to. Only MessagePort and ArrayBuffer objects can be transferred. null is not an acceptable value for the transferList.
Removes the event listener previously registered with EventTarget.addEventListener.
The Worker.terminate() method immediately terminates the Worker.