Bug 1931425 - Limit how often moz-label's #setStyles runs r=reusable-components-revie...
[gecko.git] / devtools / server / tests / chrome / suspendTimeouts_worker.js
blobe008f7d0d3831460abc3c7735920db699387a6f6
1 "use strict";
3 // Once content sends us a port connected to the mochitest, we simply echo every
4 // message we receive back to content and the mochitest.
5 onmessage = ({ data: { mochitestPort } }) => {
6 onmessage = ({ data }) => {
7 // Send a message to both content and the mochitest, which the main thread's
8 // event loop will attempt to deliver as step 2).
9 postMessage(`worker echo to content: ${data}`);
10 mochitestPort.postMessage(`worker echo to port: ${data}`);