chromium/third_party/blink/web_tests/external/wpt/lifecycle/resources/subframe_worker1.js

var bc = new BroadcastChannel('subworker_channel');

setInterval(() => {
  bc.postMessage('subworker');
}, 10);

w2 = new Worker("subframe_worker2.js");