chromium/third_party/blink/web_tests/external/wpt/workers/semantics/multiple-workers/008.js

var channel = new MessageChannel();
var i = 0;
onconnect = function(e) {
  i++;
  e.ports[0].postMessage(1, [channel['port' + i]]);
}